example app installation added

This commit is contained in:
Lukasz Laszko 2020-01-28 12:51:57 +08:00 committed by Patrick Boettcher
parent 8e3f61ba77
commit 16491dfa1b
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,9 @@ if (BUILD_EXAMPLES)
add_executable(readme-json-schema app/readme.cpp)
target_link_libraries(readme-json-schema nlohmann_json_schema_validator)
install(TARGETS json-schema-validate readme-json-schema
DESTINATION bin)
endif()
if (BUILD_TESTS)

View File

@ -46,6 +46,7 @@ class JsonSchemaValidatorConan(ConanFile):
def build(self):
cmake = CMake(self)
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.configure()
cmake.build()