forked from marcthurley/sharpSAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (31 loc) · 1.03 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
cmake_minimum_required(VERSION 3.27)
project(SHARPSAT VERSION 13.02)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
add_compile_options(-Wno-error=narrowing)
option(BUILD_SHARED_LIBS "Link to shared libraries." ON)
if(NOT BUILD_SHARED_LIBS)
set(GMP_USE_STATIC_LIBS ON)
endif()
find_package(GMP REQUIRED)
add_library(component_types OBJECT
src/component_types/base_packed_component.cpp
src/component_types/component_archetype.cpp
)
add_library(libsharpSAT STATIC
$<TARGET_OBJECTS:component_types>
src/alt_component_analyzer.cpp
src/component_analyzer.cpp
src/component_cache.cpp
src/component_management.cpp
src/instance.cpp
src/new_component_analyzer.cpp
src/solver.cpp
src/statistics.cpp
)
target_link_libraries(libsharpSAT GMP::GMPXX GMP::GMP)
add_executable(sharpSAT src/main.cpp)
target_link_libraries(sharpSAT libsharpSAT)
install(TARGETS sharpSAT)