Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ControlSystemAdapter-DoocsAdapter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ControlSystemAdapter-DoocsAdapter
Commits
9a4e91e7
Commit
9a4e91e7
authored
8 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
create find package macros
parent
55081f20
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
+8
-0
8 additions, 0 deletions
CMakeLists.txt
cmake/create_cmake_config_files.cmake
+1
-1
1 addition, 1 deletion
cmake/create_cmake_config_files.cmake
with
9 additions
and
1 deletion
CMakeLists.txt
+
8
−
0
View file @
9a4e91e7
...
...
@@ -90,6 +90,7 @@ add_executable(referenceTestDoocsServer ${CMAKE_SOURCE_DIR}/tests/referenceTestD
set_target_properties
(
referenceTestDoocsServer PROPERTIES COMPILE_FLAGS
"
${
ControlSystemAdapter_CXX_FLAGS
}
${
DOOCS_CXX_FLAGS
}
"
)
set_target_properties
(
referenceTestDoocsServer PROPERTIES LINK_FLAGS
${
DOOCS_LINK_FLAGS
}
)
target_link_libraries
(
referenceTestDoocsServer
${
mtca4u-doocsServerTestHelper_LIBRARIES
}
${
DOOCS_LIBRARIES
}
${
ControlSystemAdapter_LIBRARIES
}
${
Boost_LIBRARIES
}
${
PROJECT_NAME
}
)
FILE
(
COPY
${
CMAKE_SOURCE_DIR
}
/tests/referenceTestDoocsServer/referenceTestDoocsServer.conf DESTINATION
${
PROJECT_BINARY_DIR
}
)
#configure a header file which contains the version information for use in C++
#configure_file(cmake/version.h.in "${PROJECT_BINARY_DIR}/version.h" @ONLY)
...
...
@@ -125,5 +126,12 @@ install(DIRECTORY ${${PROJECT_NAME}_INCLUDE_DIRS} DESTINATION include/${PROJECT_
PATTERN
"
${
PROJECT_NAME
}
"
EXCLUDE
)
# generate cmake config so other projects can find this library
set
(
${
PROJECT_NAME
}
_REFERENCE_HEADER
"ControlSystemAdapter-DoocsAdapter/DoocsAdapter.h"
)
set
(
${
PROJECT_NAME
}
_CONFIG_INCLUDE_DIRS
"
${
ControlSystemAdapter_INCLUDE_DIRS
}
"
)
set
(
${
PROJECT_NAME
}
_CONFIG_LIBRARIES
"
${
ControlSystemAdapter_LIBRARIES
}
"
)
set
(
${
PROJECT_NAME
}
_CONFIG_LIBRARY_DIRS
"
${
ControlSystemAdapter_LIBRARY_DIRS
}
"
)
include
(
${
CMAKE_SOURCE_DIR
}
/cmake/create_cmake_config_files.cmake
)
# The instructions to create a debian package are loaded from a separate file
#include(${CMAKE_SOURCE_DIR}/cmake/prepare_debian_package.cmake)
This diff is collapsed.
Click to expand it.
cmake/create_cmake_config_files.cmake
+
1
−
1
View file @
9a4e91e7
...
...
@@ -26,4 +26,4 @@ configure_file(cmake/FindPROJECT_NAME.cmake.in
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
ConfigVersion.cmake"
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake"
"
${
PROJECT_BINARY_DIR
}
/Find
${
PROJECT_NAME
}
.cmake"
DESTINATION
.
COMPONENT dev
)
DESTINATION
share/cmake-
${
CMAKE_MAJOR_VERSION
}
.
${
CMAKE_MINOR_VERSION
}
/Modules
COMPONENT dev
)
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