-
Notifications
You must be signed in to change notification settings - Fork 8
/
Config.cmake.in
37 lines (27 loc) · 961 Bytes
/
Config.cmake.in
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
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/cmake/configure_boost.cmake")
##############
# Dependencies
##############
include(CMakeFindDependencyMacro)
# -----
# Boost
# -----
# Find Boost headers only according to https://cmake.org/cmake/help/latest/module/FindBoost.html
configure_boost()
find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED PATHS ${PACKAGE_PREFIX_DIR} NO_DEFAULT_PATH)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
message(STATUS "Found Boost: ${Boost_DIR} (found version ${Boost_VERSION})")
endif()
############
# Components
############
set(_dlplan_supported_components core generator novelty policy serialization statespace)
foreach(_comp ${dlplan_FIND_COMPONENTS})
if (NOT _comp IN_LIST _dlplan_supported_components)
set(dlplan_FOUND False)
set(dlplan_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/dlplan${_comp}Targets.cmake")
endforeach()