cmake: only install json-schema.hpp if not a subdir
(install rule needs more work, however)
This commit is contained in:
parent
d957c9f667
commit
a013354bc6
@ -35,12 +35,14 @@ target_link_libraries(json-schema-validator
|
|||||||
PUBLIC
|
PUBLIC
|
||||||
json-hpp)
|
json-hpp)
|
||||||
|
|
||||||
install(
|
if(NOT TARGET json-hpp) # if used as a subdirectory do not install json-schema.hpp
|
||||||
|
install(
|
||||||
FILES
|
FILES
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/json-schema-validator.hpp
|
${CMAKE_CURRENT_SOURCE_DIR}/src/json-schema.hpp
|
||||||
DESTINATION
|
DESTINATION
|
||||||
${CMAKE_INSTALL_PREFIX}/include
|
${CMAKE_INSTALL_PREFIX}/include
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# simple json-schema-validator-executable
|
# simple json-schema-validator-executable
|
||||||
add_executable(json-schema-validate app/json-schema-validate.cpp)
|
add_executable(json-schema-validate app/json-schema-validate.cpp)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user