-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
51 lines (39 loc) · 1.13 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
cmake_minimum_required(VERSION 2.8.12)
project(peng_motif CXX)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(FindASan)
set (PENG_VERSION_MAJOR 1)
set (PENG_VERSION_MINOR 0)
set (PENG_VERSION_PATCH 0)
set (PENG_DATE "04-09-2017")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED on)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
find_package(OpenMP)
if (OPENMP_FOUND)
message("-- Found OpenMP")
add_definitions(-DOPENMP)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
option(test "Build all tests." OFF)
if (test)
add_subdirectory(lib/gtest-1.8.0)
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
enable_testing()
add_subdirectory(test)
endif()
INSTALL(FILES
LICENSE
README.md
DESTINATION share/PEnG-motif
)
INSTALL(DIRECTORY
scripts/
DESTINATION bin
PATTERN *
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
)
include_directories(src)
add_subdirectory(src)