-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathconfig.cmake.in
More file actions
43 lines (39 loc) · 1.89 KB
/
config.cmake.in
File metadata and controls
43 lines (39 loc) · 1.89 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@
# 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 output)
list(APPEND BLAZE_COMPONENTS test)
list(APPEND BLAZE_COMPONENTS configuration)
list(APPEND BLAZE_COMPONENTS alterschema)
endif()
include(CMakeFindDependencyMacro)
find_dependency(Core COMPONENTS regex uri json jsonpointer jsonschema io yaml crypto)
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 "test")
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_test.cmake")
elseif(component STREQUAL "output")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_evaluator.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_output.cmake")
elseif(component STREQUAL "configuration")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_configuration.cmake")
elseif(component STREQUAL "alterschema")
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_output.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_blaze_alterschema.cmake")
else()
message(FATAL_ERROR "Unknown Blaze component: ${component}")
endif()
endforeach()
check_required_components("@PROJECT_NAME@")