-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (28 loc) · 944 Bytes
/
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
project(genomic)
cmake_minimum_required(VERSION 2.8)
enable_testing()
# configure project properties
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
message("Building Debug version")
set(genomic_DEBUG 1)
else()
set(genomic_DEBUG 0)
endif()
set(genomic_VERSION_MAJOR 0)
set(genomic_VERSION_MINOR 0)
configure_file(
"${PROJECT_SOURCE_DIR}/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
# include custom modules
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Modules" ${CMAKE_MODULE_PATH})
find_package(Boost REQUIRED)
include_directories(${PROJECT_BINARY_DIR} ${BOOST_INCLUDES})
set(genomic_SRCS genomic.cpp genomic_common.cpp global.cpp SampleSet.cpp GenericSampleSet.cpp Marker.cpp)
add_executable(genomic ${genomic_SRCS})
target_link_libraries(genomic boost_program_options)
install(TARGETS genomic RUNTIME DESTINATION bin)
add_subdirectory(tests)
#add_subdirectory(examples)
#add_subdirectory(graphic)
#add_subdirectory(command)