-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
33 lines (24 loc) · 1.4 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
cmake_minimum_required(VERSION 3.5)
project(SurVIndel)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
include_directories(htslib-1.7/include)
set(READS_CATEGORIZER_SRC reads_categorizer.cpp sam_utils.h config.h libs/cptl_stl.h)
add_executable(reads_categorizer ${READS_CATEGORIZER_SRC})
set(CLIP_CONSENSUS_BUILDER_SRC libs/ssw.c libs/ssw_cpp.cpp clip_consensus_builder.cpp sam_utils.h config.h libs/cptl_stl.h sw_utils.h cluster.h)
add_executable(clip_consensus_builder ${CLIP_CONSENSUS_BUILDER_SRC})
set(SC_CATEGORIZER_SRC sc_categorizer.cpp sam_utils.h config.h libs/cptl_stl.h cluster.h)
add_executable(sc_categorizer ${SC_CATEGORIZER_SRC})
set(CLUSTERER_SRC clusterer.cpp sam_utils.h config.h libs/cptl_stl.h cluster.h)
add_executable(clusterer ${CLUSTERER_SRC})
set(ADD_FILTERING_INFO_SRC add_filtering_info.cpp ks-test.h sam_utils.h config.h libs/cptl_stl.h cluster.h)
add_executable(add_filtering_info ${ADD_FILTERING_INFO_SRC})
set(FILTER_SRC filter.cpp cluster.h)
add_executable(filter ${FILTER_SRC})
find_library(HTS_LIB hts PATHS htslib-1.7/lib NO_DEFAULT_PATH)
target_link_libraries(reads_categorizer "${HTS_LIB}")
target_link_libraries(clip_consensus_builder "${HTS_LIB}")
target_link_libraries(sc_categorizer "${HTS_LIB}")
target_link_libraries(clusterer "${HTS_LIB}")
target_link_libraries(add_filtering_info "${HTS_LIB}")
target_link_libraries(filter "${HTS_LIB}")