-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cmake.in
More file actions
43 lines (30 loc) · 1.08 KB
/
Config.cmake.in
File metadata and controls
43 lines (30 loc) · 1.08 KB
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
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
##############################################################
# Debug prints
##############################################################
message("CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
##############################################################
# Dependency Handling
##############################################################
# -----
# Fmt
# -----
find_dependency(fmt REQUIRED)
if(fmt_FOUND)
include_directories(${fmt_INCLUDE_DIRS})
message(STATUS "Found fmt: ${fmt_DIR} (found version ${fmt_VERSION})")
endif()
############
# Components
############
set(_valla_supported_components core)
foreach(_comp ${valla_FIND_COMPONENTS})
if (NOT _comp IN_LIST _valla_supported_components)
set(valla_FOUND False)
set(valla_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/valla${_comp}Targets.cmake")
endforeach()
get_filename_component(valla_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
message(STATUS "Found valla: ${valla_CONFIG_DIR} (found version ${valla_VERSION})")