-
Notifications
You must be signed in to change notification settings - Fork 3
/
Config.cmake.in
49 lines (34 loc) · 1.46 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
##############################################################
# Debug prints
##############################################################
message("CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
##############################################################
# CMake modules and macro files
##############################################################
include("${CMAKE_CURRENT_LIST_DIR}/cmake/configure_boost.cmake")
##############################################################
# Dependency Handling
##############################################################
# 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 ${CMAKE_PREFIX_PATH} NO_DEFAULT_PATH)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
message(STATUS "Found Boost: ${Boost_DIR} (found version ${Boost_VERSION})")
endif()
############
# Components
############
set(_loki_supported_components parsers)
foreach(_comp ${loki_FIND_COMPONENTS})
if (NOT _comp IN_LIST _loki_supported_components)
set(loki_FOUND False)
set(loki_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/loki${_comp}Targets.cmake")
endforeach()
get_filename_component(LOKI_CONFIG_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
message(STATUS "Found loki: ${loki_DIR} (found version ${loki_VERSION})")