-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (37 loc) · 976 Bytes
/
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
cmake_minimum_required(VERSION 3.12)
project(MyMaxSat)
set(CMAKE_CXX_STANDARD 14)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
set(Data
data/variable.hpp
data/clause.hpp
data/formula.hpp
data/instanceReader.hpp
)
set(Algorithm
algorithm/randomizedSolver.hpp
algorithm/derandomizedSolver.hpp
algorithm/LPSolver.hpp
algorithm/LPDerandomizedSolver.hpp)
set(MpSolver
MpSolver/Common.h
MpSolver/Config.h
MpSolver/LogSwitch.h
MpSolver/MpSolver.h
MpSolver/MpSolverBase.h
MpSolver/MpSolverGurobi.h
MpSolver/MpSolverGurobi.cpp
MpSolver/Utility.h
)
add_executable(MyMaxSat
main.cpp config.h
${Data} ${Algorithm} ${MpSolver}
)
# Find Gurobi
find_package(GUROBI REQUIRED)
if(GUROBI_FOUND)
MESSAGE( STATUS "GUROBI_INCLUDE_DIRS = ${GUROBI_INCLUDE_DIRS}.")
MESSAGE( STATUS "GUROBI_LIBRARIES = ${GUROBI_LIBRARIES}.")
include_directories(SYSTEM ${GUROBI_INCLUDE_DIRS})
target_link_libraries (MyMaxSat ${GUROBI_LIBRARIES})
endif()