example app installation added
This commit is contained in:
parent
8e3f61ba77
commit
16491dfa1b
@ -129,6 +129,9 @@ if (BUILD_EXAMPLES)
|
|||||||
|
|
||||||
add_executable(readme-json-schema app/readme.cpp)
|
add_executable(readme-json-schema app/readme.cpp)
|
||||||
target_link_libraries(readme-json-schema nlohmann_json_schema_validator)
|
target_link_libraries(readme-json-schema nlohmann_json_schema_validator)
|
||||||
|
|
||||||
|
install(TARGETS json-schema-validate readme-json-schema
|
||||||
|
DESTINATION bin)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_TESTS)
|
if (BUILD_TESTS)
|
||||||
|
|||||||
@ -46,6 +46,7 @@ class JsonSchemaValidatorConan(ConanFile):
|
|||||||
def build(self):
|
def build(self):
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
cmake.definitions['nlohmann_json_DIR'] = os.path.join(self.deps_cpp_info['nlohmann_json'].rootpath, 'include')
|
cmake.definitions['nlohmann_json_DIR'] = os.path.join(self.deps_cpp_info['nlohmann_json'].rootpath, 'include')
|
||||||
|
cmake.definitions['BUILD_EXAMPLES'] = True
|
||||||
cmake.definitions['BUILD_TESTS'] = False
|
cmake.definitions['BUILD_TESTS'] = False
|
||||||
cmake.configure()
|
cmake.configure()
|
||||||
cmake.build()
|
cmake.build()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user