-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
32 lines (24 loc) · 889 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
cmake_minimum_required(VERSION 3.15.0)
project(ColumnGenerationSolver LANGUAGES CXX)
# Solver options.
option(COLUMNGENERATIONSOLVER_USE_CLP "Use CLP" ON)
option(COLUMNGENERATIONSOLVER_USE_HIGHS "Use Highs" ON)
option(COLUMNGENERATIONSOLVER_USE_CPLEX "Use CPLEX" OFF)
option(COLUMNGENERATIONSOLVER_USE_XPRESS "Use Xpress" OFF)
# Other options.
option(COLUMNGENERATIONSOLVER_BUILD_EXAMPLES "Build examples" ON)
# Avoid FetchContent warning.
cmake_policy(SET CMP0135 NEW)
# Require C++14.
set(CMAKE_CXX_STANDARD 14)
# Enable output of compile commands during generation.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Set MSVC_RUNTIME_LIBRARY.
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
# Add sub-directories.
add_subdirectory(extern)
add_subdirectory(src)
add_subdirectory(test)
if(COLUMNGENERATIONSOLVER_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()