forked from broadinstitute/gamgee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (27 loc) · 1011 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
36 lines (27 loc) · 1011 Bytes
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
cmake_minimum_required(VERSION 2.8.12)
project(gamgee)
include(ExternalProject)
# This is a C++14 library
add_compile_options("-std=c++1y")
# Dependency: Boost Unit Test Framework (find in the system)
find_package(Boost 1.55 COMPONENTS unit_test_framework REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
# enable installing dependencies
option(INSTALL_DEPENDENCIES
"Install project dependencies"
OFF)
# Dependency: htslib (download and build)
include("contrib/htslib.cmake")
include_directories(gamgee)
add_subdirectory(gamgee)
add_subdirectory(test)
ADD_CUSTOM_TARGET(debug
COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Debug ${CMAKE_SOURCE_DIR}
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target all
COMMENT "Switch CMAKE_BUILD_TYPE to Debug"
)
ADD_CUSTOM_TARGET(release
COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target all
COMMENT "Switch CMAKE_BUILD_TYPE to Release"
)