Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.10)
PROJECT(COLOQUINTE)
SET(CMAKE_CXX_STANDARD 17)

if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()

OPTION(BUILD_PYCOLOQUINTE "Build Coloquinte Python package")

IF(BUILD_PYCOLOQUINTE)
Expand All @@ -11,9 +15,16 @@ ELSE()
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK)
ENDIF()

FIND_PACKAGE(Boost REQUIRED COMPONENTS system filesystem iostreams program_options unit_test_framework)
find_package(Boost REQUIRED CONFIG
COMPONENTS
filesystem
iostreams
program_options
unit_test_framework
)

FIND_PACKAGE(LEMON NAMES LEMON lemon REQUIRED)
FIND_PACKAGE(Eigen3 3.3 REQUIRED NO_MODULE)
FIND_PACKAGE(Eigen3 5 REQUIRED NO_MODULE)
FIND_PACKAGE(Threads REQUIRED)

INCLUDE_DIRECTORIES(
Expand Down