-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
87 lines (78 loc) · 1.91 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
cmake_minimum_required(VERSION 3.10)
project(glucose LANGUAGES C CXX)
find_package(ZLIB REQUIRED)
set(
LIB_SRC
# common
core/Solver.cc
utils/Options.cc
utils/System.cc
core/BoundedQueue.h
core/Solver.h
core/SolverStats.h
core/Constants.h
core/SolverTypes.h
core/Dimacs.h
mtl/IntTypes.h
mtl/Map.h
mtl/Vec.h
mtl/Clone.h
mtl/Alg.h
mtl/XAlloc.h
mtl/Heap.h
mtl/Sort.h
mtl/VecThreads.h
mtl/Alloc.h
mtl/Queue.h
utils/Options.h
utils/System.h
utils/ParseUtils.h
# Simp
simp/SimpSolver.cc
simp/SimpSolver.h
# parallel
parallel/SolverConfiguration.cc
parallel/SharedCompanion.cc
parallel/ClausesBuffer.h
parallel/Makefile
parallel/ParallelSolver.cc
parallel/ClausesBuffer.cc
parallel/SharedCompanion.h
parallel/SolverCompanion.cc
parallel/SolverConfiguration.h
parallel/MultiSolvers.cc
parallel/ParallelSolver.h
parallel/SolverCompanion.h
parallel/MultiSolvers.h
)
set(
CLANG_WARNINGS
-Wno-logical-op-parentheses
-Wno-dangling-else
)
#
# Single-thread library and front-end
#
add_library(glucose ${SIMP_LIB_SRC} ${LIB_SRC})
target_include_directories(glucose PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_options(glucose PRIVATE -DNDEBUG)
target_compile_features(glucose PUBLIC cxx_std_11)
target_compile_options(
glucose PRIVATE
"$<$<CXX_COMPILER_ID:Clang>:${CLANG_WARNINGS}>"
"$<$<CXX_COMPILER_ID:AppleClang>:${CLANG_WARNINGS}>"
)
add_executable(frontend-simp simp/Main.cc)
target_link_libraries(frontend-simp PRIVATE glucose ZLIB::ZLIB)
set_property(TARGET frontend-simp PROPERTY OUTPUT_NAME glucose)
target_compile_options(
frontend-simp PRIVATE
-Wno-logical-op-parentheses
)
add_executable(frontend-syrup parallel/Main.cc)
target_link_libraries(frontend-syrup PRIVATE glucose ZLIB::ZLIB)
set_property(TARGET frontend-syrup PROPERTY OUTPUT_NAME glucose-syrup)
target_compile_options(
frontend-syrup PRIVATE
-Wno-logical-op-parentheses
)