-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
47 lines (38 loc) · 1.52 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
cmake_minimum_required(VERSION 3.12)
project(SMS VERSION "1.0" LANGUAGES C CXX)
# set(CMAKE_EXE_LINKER_FLAGS "-static")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
if (CMAKE_BUILD_TYPE)
message("Build type set to ${CMAKE_BUILD_TYPE}.")
else()
set(CMAKE_BUILD_TYPE Release)
endif ()
# find_package(Z3 4.12.0 REQUIRED)
if (DEFINED GLASGOW)
set(CMAKE_CXX_STANDARD 20)
add_compile_definitions(GLASGOW)
include_directories(glasgow-subgraph-solver)
#link_libraries("${PROJECT_SOURCE_DIR}/glasgow-subgraph-solver/libcommon.a")
link_libraries("${PROJECT_SOURCE_DIR}/glasgow-subgraph-solver/build/gss/libglasgow_subgraphs.a")
link_libraries("pthread")
link_libraries("stdc++fs")
find_package(Boost REQUIRED COMPONENTS container thread iostreams)
include_directories(${Boost_INCLUDE_DIRS})
link_libraries(${Boost_LIBRARIES})
# link_libraries("boost_container")
# link_libraries("boost_thread")
# link_libraries("boost_iostreams")
message("-- Linking with the Glasgow Subgraph Solver")
unset(GLASGOW) # to suppress the warning about an unused variable in src/CMakeLists.txt
else ()
message("-- Building without the Glasgow Subgraph Solver")
endif()
add_subdirectory(src)
# add_subdirectory(src_directed)
# add_subdirectory(src_hypher_graph)
# add_subdirectory(src_hypher_graph_incidence)
# -DZ3_INCLUDE_DIR=[path][/src/api
# -DZ3_LIBRARIES=[path]/debug/libz3.so
# cmake . -B./build -DZ3_INCLUDE_DIR=./z3-master/src/api -DZ3_LIBRARIES=./z3-master/build/libz3.so