-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.cmake.in
30 lines (26 loc) · 1.13 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
@PACKAGE_INIT@
# Support both casing styles
list(APPEND BLAZE_COMPONENTS ${Blaze_FIND_COMPONENTS})
list(APPEND BLAZE_COMPONENTS ${blaze_FIND_COMPONENTS})
if(NOT BLAZE_COMPONENTS)
list(APPEND BLAZE_COMPONENTS compiler)
list(APPEND BLAZE_COMPONENTS evaluator)
list(APPEND BLAZE_COMPONENTS linter)
endif()
include(CMakeFindDependencyMacro)
find_dependency(Core COMPONENTS regex uri json jsonpointer jsonschema)
foreach(component ${BLAZE_COMPONENTS})
if(component STREQUAL "compiler")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_evaluator.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_compiler.cmake")
elseif(component STREQUAL "evaluator")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_evaluator.cmake")
elseif(component STREQUAL "linter")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_evaluator.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_compiler.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_linter.cmake")
else()
message(FATAL_ERROR "Unknown Blaze component: ${component}")
endif()
endforeach()
check_required_components("@PROJECT_NAME@")