Commit 1c918b9b authored by Alexis Girault's avatar Alexis Girault

STYLE: Improve CMakeList namespace definition

parent cb0f7d3c
......@@ -66,14 +66,17 @@ add_subdirectory(Base/SimulationManager)
#--------------------------------------------------------------------------
# Export Targets
#--------------------------------------------------------------------------
export(EXPORT iMSTK_TARGETS
FILE ${CMAKE_CURRENT_BINARY_DIR}/iMSTKTargets.cmake
NAMESPACE imstk::
string(TOLOWER "${PROJECT_NAME}" PROJECT_NAMESPACE)
set(PROJECT_NAMESPACE "${PROJECT_NAMESPACE}::")
export(EXPORT ${PROJECT_NAME}_TARGETS
FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAMESPACE}
)
install(EXPORT iMSTK_TARGETS
FILE iMSTKTargets.cmake
NAMESPACE imstk::
install(EXPORT ${PROJECT_NAME}_TARGETS
FILE ${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAMESPACE}
COMPONENT Development
DESTINATION ${${PROJECT_NAME}_INSTALL_SHARE_DIR}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment