-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (23 loc) · 966 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
cmake_minimum_required(VERSION 3.10)
project(siga VERSION 0.10)
set(PROJECT_URL "http:https://bioinfo.ict.ac.cn/siga")
set(PROJECT_BUGREPORT "[email protected]")
set(CMAKE_CXX_STANDARD 11)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(Boost COMPONENTS filesystem iostreams program_options unit_test_framework REQUIRED)
find_package(OpenMP QUIET)
find_package(RapidJSON REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Log4cxx REQUIRED IMPORTED_TARGET liblog4cxx>=0.10.0)
pkg_check_modules(MLPack QUIET IMPORTED_TARGET mlpack>=3.2.1)
pkg_check_modules(RapidJSON REQUIRED IMPORTED_TARGET RapidJSON>=1.0.0)
pkg_check_modules(TCMalloc QUIET IMPORTED_TARGET libtcmalloc>=2.1)
find_program(HELP2MAN NAMES help2man)
find_program(BUNDLE NAMES bundle)
add_definitions(-DHAVE_CONFIG_H)
configure_file(siga.h.in config.h @ONLY)
enable_testing()
add_subdirectory(3rdparty)
add_subdirectory(docs)
add_subdirectory(src)
add_subdirectory(test)