Skip to content
Snippets Groups Projects
Commit b73a9e15 authored by Fabian Reister's avatar Fabian Reister
Browse files

Simox targets exported in namespace Simox::

parent 4fcc77ac
No related branches found
No related tags found
No related merge requests found
......@@ -261,8 +261,25 @@ MESSAGE (STATUS "** Simox: Generating CMake files for build and install setup")
# Add all targets to the build-tree export set
export(TARGETS ${SIMOX_EXPORT_TARGET_LIST}
FILE "${PROJECT_BINARY_DIR}/SimoxTargets.cmake")
export(
TARGETS
${SIMOX_EXPORT_TARGET_LIST}
NAMESPACE
Simox::
FILE
"${PROJECT_BINARY_DIR}/SimoxTargets.cmake"
)
export(
TARGETS
${SIMOX_EXPORT_TARGET_LIST}
# NAMESPACE
# Simox::
FILE
"${PROJECT_BINARY_DIR}/SimoxTargetsLegacy.cmake"
)
# Export the package for use from the build-tree
# (this registers the build-tree with a global CMake-registry)
......
......@@ -24,6 +24,7 @@ get_filename_component(Simox_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
# Our library dependencies (contains definitions for IMPORTED targets)
if(NOT TARGET Simox AND NOT Simox_BINARY_DIR)
include("${Simox_CMAKE_DIR}/SimoxTargets.cmake")
include("${Simox_CMAKE_DIR}/SimoxTargetsLegacy.cmake")
endif()
# These are IMPORTED targets created by SimoxTargets.cmake
set(Simox_LIBRARIES "@Simox_LIBRARIES@")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment