-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
52 lines (36 loc) · 1.32 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
cmake_minimum_required (VERSION 2.6)
project(FRC_aling)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
add_definitions( -Wno-deprecated )
#to link against static boost libraries if available
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost COMPONENTS program_options system filesystem REQUIRED)
# set our library and executable destination dirs
set( EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin" )
# define compiler flags for all code
set( CMAKE_BUILD_TYPE Release )
include_directories("${PROJECT_SOURCE_DIR}/src")
include_directories("${PROJECT_SOURCE_DIR}/lib/")
include_directories("${PROJECT_SOURCE_DIR}/lib/bamtools/src")
include_directories( ${Boost_INCLUDE_DIRS} )
# sources to compile
file(GLOB FRC_FILES
${PROJECT_SOURCE_DIR}/src/FRC_align.cpp
${PROJECT_SOURCE_DIR}/src/data_structures/Contig.cpp
${PROJECT_SOURCE_DIR}/src/data_structures/Features.cpp
${PROJECT_SOURCE_DIR}/src/data_structures/FRC.cpp
)
add_subdirectory(lib)
# FRC executable
add_executable(FRC ${FRC_FILES})
target_link_libraries(FRC ${ZLIB_LIBRARIES})
if(TARGET BamTools-static)
target_link_libraries(FRC BamTools-static)
else()
target_link_libraries(FRC BamTools)
endif()
target_link_libraries(FRC ${Boost_LIBRARIES})
install(
TARGETS FRC
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib)