From dcd6acb1f490437a0238a95a3ffc7724a4f42189 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Fri, 18 Oct 2024 19:39:59 +0100 Subject: [PATCH] Install cityjson_converter lib and exe Fixes: $ IfcConvert IfcConvert: error while loading shared libraries: libcityjson_converter.so: cannot open shared object file: No such file or directory --- cmake/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 3eaa9833a0..b749866fca 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1051,10 +1051,19 @@ if(BUILD_CONVERT) target_include_directories(cityjson_converter PRIVATE ../src) set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} cityjson_converter) + install(TARGETS cityjson_converter + ARCHIVE DESTINATION ${LIBDIR} + LIBRARY DESTINATION ${LIBDIR} + ) + add_executable(cityjson_converter_exe ${CITYJSON_CONVERT_FILES}) set_target_properties(cityjson_converter_exe PROPERTIES COMPILE_FLAGS "-DCITYJSON_EXECUTABLE") target_include_directories(cityjson_converter_exe PRIVATE ../src) target_link_libraries(cityjson_converter_exe ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${HDF5_LIBRARIES} ${USD_LIBRARIES}) + + install(TARGETS cityjson_converter_exe + RUNTIME DESTINATION ${BINDIR} + ) endif() # IfcConvert