mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Also flip the dependence between json_schema_validator and kicommon, and create a shared JSON_SCHEMA_VALIDATOR so that we don't have to copy/paste the schema loading code as much
20 lines
519 B
CMake
20 lines
519 B
CMake
add_library( nlohmann_json_schema_validator STATIC
|
|
json-schema-draft7.json.cpp
|
|
json-uri.cpp
|
|
json-validator.cpp
|
|
json-patch.cpp
|
|
string-format-check.cpp
|
|
)
|
|
|
|
target_include_directories( nlohmann_json_schema_validator
|
|
PUBLIC
|
|
$<INSTALL_INTERFACE:include>
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
)
|
|
|
|
target_include_directories( nlohmann_json_schema_validator INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
|
|
|
|
target_link_libraries( nlohmann_json_schema_validator
|
|
PUBLIC nlohmann_json
|
|
)
|