Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
b73a9e15
Commit
b73a9e15
authored
4 years ago
by
Fabian Reister
Browse files
Options
Downloads
Patches
Plain Diff
Simox targets exported in namespace Simox::
parent
4fcc77ac
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+19
-2
19 additions, 2 deletions
CMakeLists.txt
CMakeModules/SimoxConfig.cmake.in
+1
-0
1 addition, 0 deletions
CMakeModules/SimoxConfig.cmake.in
with
20 additions
and
2 deletions
CMakeLists.txt
+
19
−
2
View file @
b73a9e15
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
CMakeModules/SimoxConfig.cmake.in
+
1
−
0
View file @
b73a9e15
...
...
@@ -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@")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment