Skip to content

Commit

Permalink
Merge pull request #472 from CesiumGS/fixTestsBuildIssue
Browse files Browse the repository at this point in the history
fix build issue in release, tests were trying to install but not build
  • Loading branch information
mattelser authored Sep 28, 2023
2 parents bdcd339 + faf9419 commit 5433f44
Showing 1 changed file with 49 additions and 46 deletions.
95 changes: 49 additions & 46 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -669,54 +669,57 @@ install(
COMPONENT library
EXCLUDE_FROM_ALL)

install(
TARGETS cesium.omniverse.cpp.tests.plugin
ARCHIVE DESTINATION ${KIT_EXTENSION_TESTS_BIN_PATH} COMPONENT install
LIBRARY DESTINATION ${KIT_EXTENSION_TESTS_BIN_PATH} COMPONENT install
RUNTIME DESTINATION ${KIT_EXTENSION_TESTS_BIN_PATH} COMPONENT install)
install(
TARGETS cesium.omniverse.cpp.tests.plugin
RUNTIME_DEPENDENCIES
DIRECTORIES
${INSTALL_SEARCH_PATHS}
PRE_EXCLUDE_REGEXES
${INSTALL_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES
${INSTALL_POST_EXCLUDE_REGEXES}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL)

install(
TARGETS CesiumOmniverseCppTestsPythonBindings
ARCHIVE DESTINATION ${KIT_EXTENSION_TESTS_BINDINGS_PATH} COMPONENT install
LIBRARY DESTINATION ${KIT_EXTENSION_TESTS_BINDINGS_PATH} COMPONENT install
RUNTIME DESTINATION ${KIT_EXTENSION_TESTS_BINDINGS_PATH} COMPONENT install)
if(CESIUM_OMNI_ENABLE_TESTS)
install(
TARGETS cesium.omniverse.cpp.tests.plugin
ARCHIVE DESTINATION ${KIT_EXTENSION_TESTS_BIN_PATH} COMPONENT install
LIBRARY DESTINATION ${KIT_EXTENSION_TESTS_BIN_PATH} COMPONENT install
RUNTIME DESTINATION ${KIT_EXTENSION_TESTS_BIN_PATH} COMPONENT install)
install(
TARGETS cesium.omniverse.cpp.tests.plugin
RUNTIME_DEPENDENCIES
DIRECTORIES
${INSTALL_SEARCH_PATHS}
PRE_EXCLUDE_REGEXES
${INSTALL_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES
${INSTALL_POST_EXCLUDE_REGEXES}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL)

install(
TARGETS CesiumOmniverseCppTestsPythonBindings
RUNTIME_DEPENDENCIES
DIRECTORIES
${INSTALL_SEARCH_PATHS}
PRE_EXCLUDE_REGEXES
${INSTALL_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES
${INSTALL_POST_EXCLUDE_REGEXES}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL)
install(
TARGETS CesiumOmniverseCppTestsPythonBindings
ARCHIVE DESTINATION ${KIT_EXTENSION_TESTS_BINDINGS_PATH} COMPONENT install
LIBRARY DESTINATION ${KIT_EXTENSION_TESTS_BINDINGS_PATH} COMPONENT install
RUNTIME DESTINATION ${KIT_EXTENSION_TESTS_BINDINGS_PATH} COMPONENT install)

install(
TARGETS CesiumOmniverseCppTestsPythonBindings
RUNTIME_DEPENDENCIES
DIRECTORIES
${INSTALL_SEARCH_PATHS}
PRE_EXCLUDE_REGEXES
${INSTALL_PRE_EXCLUDE_REGEXES}
POST_EXCLUDE_REGEXES
${INSTALL_POST_EXCLUDE_REGEXES}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT library
EXCLUDE_FROM_ALL)
endif()

install(
DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
Expand Down

0 comments on commit 5433f44

Please sign in to comment.