-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
62 lines (48 loc) · 1.56 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
60
61
62
cmake_minimum_required (VERSION 3.15)
project (singular-parallel LANGUAGES C CXX)
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
set (INSTALL_DO_NOT_BUNDLE ON CACHE BOOL "")
find_package (GPISpace REQUIRED DO_NOT_CHECK_GIT_SUBMODULES)
find_package (util-generic REQUIRED)
find_package (util-cmake REQUIRED)
include (util-cmake/add_macros)
include (util-cmake/beautify_find_boost)
include (util-cmake/beautify_find_GPISpace)
find_boost (1.61 REQUIRED QUIET FROM_GPISPACE_INSTALLATION COMPONENTS
date_time
filesystem
program_options
regex
serialization
system
test_exec_monitor
thread
unit_test_framework
timer
iostreams
chrono
)
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
find_package (Singular REQUIRED)
#set (BUNDLE_ROOT "libexec/bundle")
#bundle_GPISpace (DESTINATION "${BUNDLE_ROOT}/gpispace" COMPONENTS "runtime" "monitoring")
set (SP_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}")
include_directories ("src")
include_directories ("${CMAKE_CURRENT_SOURCE_DIR}")
include_directories ("${CMAKE_CURRENT_BINARY_DIR}/src")
add_subdirectory (src)
add_subdirectory (parallel)
add_subdirectory (smoothness)
add_subdirectory (workflow)
#install (DIRECTORY "${SINGULAR_HOME}/"
# DESTINATION "${BUNDLE_ROOT}/singular"
# USE_SOURCE_PERMISSIONS
# PATTERN "share/singular/html/*" EXCLUDE
#)
install (DIRECTORY examples
DESTINATION "${CMAKE_INSTALL_PREFIX}/share"
)