-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (32 loc) · 854 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
project(cbs)
cmake_minimum_required (VERSION 3.17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall")
set(CMAKE_CXX_STANDARD 20)
include_directories("inc")
file(GLOB SOURCES "src/*.cpp")
# Find Boost
find_package( Boost 1.49.0 REQUIRED COMPONENTS program_options system filesystem)
include_directories(
${Boost_INCLUDE_DIRS}
$ENV{GUROBI_HOME}/include
$ENV{COINOR_HOME}/dist/include
)
link_directories(
$ENV{GUROBI_HOME}/lib
$ENV{COINOR_HOME}/dist/lib
)
link_libraries(pthread # Used by one of the other dependencies
stdc++fs
gurobi_c++
gurobi81
spdlog
Osi
OsiGrb
CoinUtils
)
add_executable(cbs ${SOURCES} )
set_property(
TARGET cbs
PROPERTY COMPILE_DEFINITIONS IL_STD
)
target_link_libraries(cbs ${Boost_LIBRARIES})