UNPKG

node-blaze

Version:

Bindings to blaze, high-performance C++ JSON Schema validator

31 lines (26 loc) 1.15 kB
@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@")