-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
59 lines (49 loc) · 1.6 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
52
53
54
55
56
57
58
59
project (gitfan LANGUAGES CXX)
cmake_minimum_required (VERSION 3.7.2)
enable_testing()
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=deprecated-copy")
set (PNET "gitfan.pnet")
set (WORKFLOW_INSTALLATION "workflow")
set (LIB_INSTALLATION "libexec")
add_subdirectory (${GPISPACE_REPO}/cmake cmake)
include (add_macros)
include (beautify_find_boost)
include (beautify_find_GPISpace)
find_GPISpace (REVISION 460e02ac5b0d3fbd494e3e774d5bd595e0272381)
find_boost (1.63 REQUIRED QUIET FROM_GPISPACE_INSTALLATION COMPONENTS
date_time
filesystem
iostreams
program_options
regex
serialization
system
thread
unit_test_framework
)
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
list (APPEND INSTALL_RPATH_DIRS "libexec/bundle/gpispace/lib")
find_package (Singular REQUIRED)
set (BUNDLE_GPISPACE "libexec/bundle/gpispace")
bundle_GPISpace (DESTINATION "${BUNDLE_GPISPACE}"
COMPONENTS "runtime"
"monitoring"
)
install (DIRECTORY "${SINGULAR_HOME}/"
DESTINATION libexec/bundle/singular
USE_SOURCE_PERMISSIONS
)
include_directories ("${CMAKE_SOURCE_DIR}/src")
include_directories ("${CMAKE_BINARY_DIR}")
include_directories("${GPISPACE_REPO}/src")
add_subdirectory (${GPISPACE_REPO}/src/util-generic src/util-generic)
add_subdirectory (${GPISPACE_REPO}/src/rpc src/rpc)
add_subdirectory (singular)
add_subdirectory (googletest)
add_subdirectory (src)
add_subdirectory (workflow)
add_subdirectory (tests)