-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
31 lines (21 loc) · 1 KB
/
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
cmake_minimum_required(VERSION 3.5) # <3.5 is deprecated by CMake
project( DriplinePy VERSION 4.7.1 )
cmake_policy( SET CMP0074 NEW )
# standard install directories
include( GNUInstallDirs )
# We need to find Boost here so that all of the components have already been found
# before each dependency's config
# Here's the master list of required boost components
# Requirements come from: SimpleAmqpClient, and Scarab
list( APPEND boost_components chrono filesystem system )
# Boost (1.47 required for SimpleAmqpClient)
find_package( Boost 1.47.0 REQUIRED COMPONENTS ${boost_components} )
set( PUBLIC_EXT_LIBS )
find_package( Threads REQUIRED )
list( APPEND PUBLIC_EXT_LIBS Threads::Threads )
find_package( pybind11 2.6.0 REQUIRED )
list( APPEND PUBLIC_EXT_LIBS pybind11::module )
find_package( Dripline CONFIG REQUIRED )
list( APPEND PUBLIC_EXT_LIBS Dripline::Dripline Scarab::Scarab_Dripline )
include_directories( BEFORE ${PROJECT_SOURCE_DIR}/module_bindings/dripline_core )
add_subdirectory( module_bindings )