-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.cmake.in
More file actions
26 lines (22 loc) · 886 Bytes
/
config.cmake.in
File metadata and controls
26 lines (22 loc) · 886 Bytes
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
@PACKAGE_INIT@
# Support both casing styles
list(APPEND CODEGEN_COMPONENTS ${Codegen_FIND_COMPONENTS})
list(APPEND CODEGEN_COMPONENTS ${codegen_FIND_COMPONENTS})
if(NOT CODEGEN_COMPONENTS)
list(APPEND CODEGEN_COMPONENTS ir)
list(APPEND CODEGEN_COMPONENTS generator)
endif()
include(CMakeFindDependencyMacro)
find_dependency(Core COMPONENTS regex json jsonschema)
find_dependency(Blaze COMPONENTS alterschema)
foreach(component ${CODEGEN_COMPONENTS})
if(component STREQUAL "ir")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_codegen_ir.cmake")
elseif(component STREQUAL "generator")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_codegen_ir.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sourcemeta_codegen_generator.cmake")
else()
message(FATAL_ERROR "Unknown Codegen component: ${component}")
endif()
endforeach()
check_required_components("@PROJECT_NAME@")