-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
45 lines (35 loc) · 1.42 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
cmake_minimum_required (VERSION 2.8.11 FATAL_ERROR)
project (BaMMmotif-v2)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(FindASan)
# link to Boost library
set (Boost_USE_STATIC_LIBS ON CACHE BOOL "use static libraries from Boost")
set (Boost_USE_MULTITHREADED ON)
set (Boost_USE_STATIC_RUNTIME OFF)
find_package (Boost REQUIRED)
include_directories (${Boost_INCLUDE_DIR})
link_libraries (${Boost_LIBRARIES})
# set the version of BaMM!motif
set (BAMMMOTIF_MAJOR_VERSION 2)
set (BAMMMOTIF_MINOR_VERSION 0)
set (BAMMMOTIF_PATCH_VERSION 0)
set (BAMMMOTIF_VERSION ${BAMMMOTIF_MAJOR_VERSION}.${BAMMMOTIF_MINOR_VERSION}.${BAMMMOTIF_PATCH_VERSION})
set (CMAKE_CXX_FLAGS "-std=c++11 -Wall")
find_package(OpenMP)
if(OPENMP_FOUND OR OpenMP_FOUND OR OpenMP_CXX_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
add_definitions(-DOPENMP)
endif()
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
install (DIRECTORY R/ ${CMAKE_BINARY_DIR}/bin/
DESTINATION bin
PATTERN *
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
)
add_subdirectory (src/getopt_pp getopt_pp)
add_subdirectory (src/init init)
add_subdirectory (src/seq_generator seq_generator)
add_subdirectory (src/seq_scoring seq_scoring)
add_subdirectory (src/refinement bamm)
add_subdirectory (src/evaluation evaluation)
add_subdirectory (src/misc extractProbs)