-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
150 lines (115 loc) · 5.3 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
cmake_minimum_required (VERSION 3.1)
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH})
find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} g++ PATHS ENV PATH NO_DEFAULT_PATH})
project (Inchworm)
enable_language(CXX)
set(default_build_type "Release")
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "${Red}No build type specified so building in RELEASE mode.${ColourReset}")
set(CMAKE_BUILD_TYPE "${default_build_type}")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pipe -W -Wall -Wpedantic -fopenmp -pthread -m64")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -DNDEBUG ")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lm -ldl ")
MESSAGE(STATUS "system: ${CMAKE_SYSTEM_NAME}")
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lrt")
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++")
endif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
include_directories( BEFORE "${CMAKE_SOURCE_DIR}" )
############
## Chrysalis
############
set(Chrysalis_SOURCES aligns/KmerAlignCore.cc
analysis/AACodons.cc
analysis/Chrysalis.cc
analysis/DNAVector.cc
analysis/TranscriptomeGraph.cc
base/ErrorHandling.cc
base/FileParser.cc
base/StringUtil.cc
util/mutil.cc )
add_executable(Chrysalis ${Chrysalis_SOURCES})
install(TARGETS Chrysalis DESTINATION bin)
#################
## GraphFromFasta
#################
set(GraphFromFasta_SOURCES aligns/KmerAlignCore.cc
analysis/AACodons.cc
analysis/DNAVector.cc
analysis/DeBruijnGraph.cc
analysis/GraphFromFasta.cc
analysis/KmerTable.cc
analysis/NonRedKmerTable.cc
analysis/sequenceUtil.cc
analysis/stacktrace.cc
base/ErrorHandling.cc
base/FileParser.cc
base/StringUtil.cc
util/mutil.cc )
add_executable(GraphFromFasta ${GraphFromFasta_SOURCES})
install(TARGETS GraphFromFasta DESTINATION bin)
################
## QuantifyGraph
################
set(QuantifyGraph_SOURCES aligns/KmerAlignCore.cc
analysis/AACodons.cc
analysis/DNAVector.cc
analysis/KmerTable.cc
analysis/NonRedKmerTable.cc
analysis/QuantifyGraph.cc
base/ErrorHandling.cc
base/FileParser.cc
base/StringUtil.cc
analysis/sequenceUtil.cc
analysis/stacktrace.cc
util/mutil.cc )
add_executable(QuantifyGraph ${QuantifyGraph_SOURCES})
install(TARGETS QuantifyGraph DESTINATION bin)
#####################
## ReadsToTranscripts
#####################
set(ReadsToTranscripts_SOURCES analysis/AACodons.cc
analysis/DNAVector.cc
analysis/NonRedKmerTable.cc
analysis/ReadsToTranscripts.cc
analysis/sequenceUtil.cc
analysis/stacktrace.cc
base/ErrorHandling.cc
base/FileParser.cc
base/StringUtil.cc
util/mutil.cc )
add_executable(ReadsToTranscripts ${ReadsToTranscripts_SOURCES})
install(TARGETS ReadsToTranscripts DESTINATION bin)
#####################
## BubbleUpClustering
#####################
set(BubbleUpClustering_SOURCES aligns/KmerAlignCore.cc
analysis/AACodons.cc
analysis/BubbleUpClustering.cc
analysis/DNAVector.cc
analysis/DeBruijnGraph.cc
analysis/KmerTable.cc
analysis/NonRedKmerTable.cc
analysis/sequenceUtil.cc
analysis/stacktrace.cc
base/ErrorHandling.cc
base/FileParser.cc
base/StringUtil.cc
util/mutil.cc )
add_executable(BubbleUpClustering ${BubbleUpClustering_SOURCES})
install(TARGETS BubbleUpClustering DESTINATION bin)
#########################
## CreateIwormFastaBundle
#########################
set(CreateIwormFastaBundle_SOURCES analysis/AACodons.cc
analysis/CreateIwormFastaBundle.cc
analysis/DNAVector.cc
base/ErrorHandling.cc
base/FileParser.cc
base/StringUtil.cc
util/mutil.cc )
add_executable(CreateIwormFastaBundle ${CreateIwormFastaBundle_SOURCES})
install(TARGETS CreateIwormFastaBundle DESTINATION bin)