-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
173 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.15.0) | ||
|
||
project(SetCoveringSolver LANGUAGES CXX) | ||
|
||
option(SETCOVERINGSOLVER_USE_CBC "Use CPLEX" ON) | ||
option(SETCOVERINGSOLVER_USE_GUROBI "Use Gurobi" OFF) | ||
|
||
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Enable FetchContent. | ||
include(FetchContent) | ||
|
||
# Fetch boost. | ||
set(BOOST_INCLUDE_LIBRARIES thread filesystem system program_options) | ||
set(BOOST_ENABLE_CMAKE ON) | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
Boost | ||
GIT_REPOSITORY https://github.com/boostorg/boost.git | ||
GIT_TAG boost-1.84.0 | ||
GIT_SHALLOW TRUE | ||
) | ||
FetchContent_MakeAvailable(Boost) | ||
|
||
# Fetch fontanf/optimizationtools. | ||
FetchContent_Declare( | ||
optimizationtools | ||
GIT_REPOSITORY https://github.com/fontanf/optimizationtools.git | ||
GIT_TAG 33a3966ece149d390ec7ce08699669b5267e64aa) | ||
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../optimizationtools/") | ||
FetchContent_MakeAvailable(optimizationtools) | ||
|
||
# Fetch fontanf/mathoptsolverscmake. | ||
if(SETCOVERINGSOLVER_USE_CBC) | ||
set(MATHOPTSOLVERSCMAKE_USE_CBC ON) | ||
endif() | ||
if(SETCOVERINGSOLVER_USE_GUROBI) | ||
set(MATHOPTSOLVERSCMAKE_USE_GUROBI ON) | ||
endif() | ||
FetchContent_Declare( | ||
mathoptsolverscmake | ||
GIT_REPOSITORY https://github.com/fontanf/mathoptsolverscmake.git | ||
GIT_TAG 56190725f424249a3acd8fce3ff50e08fe675cc6) | ||
#SOURCE_DIR "${PROJECT_SOURCE_DIR}/../mathoptsolverscmake/") | ||
FetchContent_MakeAvailable(mathoptsolverscmake) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.