* Remove travis file * Apply pre-commit fixes * Modernize cmake file - Added JSON_VALIDATOR_SHARED_LIBS to properly handle shared-library - Bumped minimum cmake to 3.11 to use no-source add_library - Bumped minimum cmake to 3.14 to properly support FetchContent (FetchContent_MakeAvailable) - Converted Hunter package manager to FetchContent (It is plenty mature these days) - Added namespace to exported target - Made the cmake file compatible with FetchContent * Use simplified FetchContent CI * Add simple status messages * Handle nlohmann dependency Not an ideal approach, but required in order for the exported target to have appropriate linkage. Maybe this can be designed to become a PRIVATE link library, but then how does it ensure the target is installed? * Remove CMake-install test This will be moved to packaging integration tests * Enable code coverage * Reconfigure ci presets Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
15 lines
594 B
CMake
15 lines
594 B
CMake
# simple nlohmann_json_schema_validator-executable
|
|
add_executable(json-schema-validate json-schema-validate.cpp)
|
|
target_link_libraries(json-schema-validate nlohmann_json_schema_validator)
|
|
|
|
add_executable(readme-json-schema readme.cpp)
|
|
target_link_libraries(readme-json-schema nlohmann_json_schema_validator)
|
|
|
|
add_executable(format-json-schema format.cpp)
|
|
target_link_libraries(format-json-schema nlohmann_json_schema_validator)
|
|
|
|
if (JSON_VALIDATOR_INSTALL)
|
|
install(TARGETS json-schema-validate readme-json-schema format-json-schema
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
endif ()
|