-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
87 lines (67 loc) · 1.42 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
cmake_minimum_required(VERSION 2.8)
project(TN93)
#-------------------------------------------------------------------------------
# default installation prefix
#-------------------------------------------------------------------------------
set(INSTALL_PREFIX /usr/local CACHE PATH "Installation prefix")
set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX} CACHE INTERNAL "Installation prefix" FORCE)
set(CMAKE_CONFIGURATION_TYPES Release)
include_directories(
src/include
)
add_executable(
gid-taxid
src/gid-taxid.c
src/util/avl.c
src/util/buffers.c
)
add_executable(
taxonomy-reader
src/taxonomy_reader.c
src/util/avl.c
src/util/buffers.c
src/util/taxinfo.c
)
add_executable(
taxonomy2tree
src/taxonomy2tree.c
src/util/avl.c
src/util/buffers.c
src/util/taxinfo.c
)
add_executable(
tree2ps
src/tree2ps.c
src/util/avl.c
src/util/buffers.c
)
set(DEFAULT_COMPILE_FLAGS "-O3")
set(DEFAULT_LINK_FLAGS "${DEFAULT_COMPILE_FLAGS}")
install(
TARGETS gid-taxid
RUNTIME DESTINATION bin
)
install(
TARGETS taxonomy-reader
RUNTIME DESTINATION bin
)
install(
TARGETS taxonomy2tree
RUNTIME DESTINATION bin
)
install(
TARGETS tree2ps
RUNTIME DESTINATION bin
)
add_custom_target(gid2taxid
DEPENDS gid-taxid
)
add_custom_target(taxonomyparser
DEPENDS taxonomy-reader
)
add_custom_target(T2T
DEPENDS taxonomy2tree
)
add_custom_target(T2PS
DEPENDS tree2ps
)