Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC Server Config
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
MSK-SW
Infrastructure and Support
TEC
TEC Server Config
Commits
41a19a3b
Commit
41a19a3b
authored
4 years ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
added support for pkgconfig
parent
dcc09cfb
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
cmake/PROJECT_NAME.pc.in.in
+5
-0
5 additions, 0 deletions
cmake/PROJECT_NAME.pc.in.in
cmake/create_cmake_config_files.cmake
+8
-1
8 additions, 1 deletion
cmake/create_cmake_config_files.cmake
with
13 additions
and
1 deletion
cmake/PROJECT_NAME.pc.in.in
0 → 100644
+
5
−
0
View file @
41a19a3b
Name: @PROJECT_NAME@
Description: Config for @PROJECT_NAME@
Version: @@PROJECT_NAME@_SOVERSION@
Cflags: @@PROJECT_NAME@_CXX_FLAGS_MAKEFILE@
Libs: @@PROJECT_NAME@_LINKER_FLAGS_MAKEFILE@
This diff is collapsed.
Click to expand it.
cmake/create_cmake_config_files.cmake
+
8
−
1
View file @
41a19a3b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#
#
#######################################################################################################################
#######################################################################################################################
# create variables for standard makefiles
# create variables for standard makefiles
and pkgconfig
set
(
${
PROJECT_NAME
}
_CXX_FLAGS_MAKEFILE
"
${${
PROJECT_NAME
}
_CXX_FLAGS
}
"
)
set
(
${
PROJECT_NAME
}
_CXX_FLAGS_MAKEFILE
"
${${
PROJECT_NAME
}
_CXX_FLAGS
}
"
)
string
(
REPLACE
" "
";"
LIST
"
${${
PROJECT_NAME
}
_INCLUDE_DIRS
}
"
)
string
(
REPLACE
" "
";"
LIST
"
${${
PROJECT_NAME
}
_INCLUDE_DIRS
}
"
)
...
@@ -79,6 +79,11 @@ configure_file(${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake.in
...
@@ -79,6 +79,11 @@ configure_file(${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake.in
configure_file
(
cmake/PROJECT_NAME-config.in.in
"
${
PROJECT_BINARY_DIR
}
/cmake/
${
PROJECT_NAME
}
-config.in"
@ONLY
)
configure_file
(
cmake/PROJECT_NAME-config.in.in
"
${
PROJECT_BINARY_DIR
}
/cmake/
${
PROJECT_NAME
}
-config.in"
@ONLY
)
configure_file
(
${
PROJECT_BINARY_DIR
}
/cmake/
${
PROJECT_NAME
}
-config.in
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config"
@ONLY
)
configure_file
(
${
PROJECT_BINARY_DIR
}
/cmake/
${
PROJECT_NAME
}
-config.in
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config"
@ONLY
)
# create the pkgconfig file
configure_file
(
cmake/PROJECT_NAME.pc.in.in
"
${
PROJECT_BINARY_DIR
}
/cmake/
${
PROJECT_NAME
}
.pc.in"
@ONLY
)
configure_file
(
${
PROJECT_BINARY_DIR
}
/cmake/
${
PROJECT_NAME
}
.pc.in
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
.pc"
@ONLY
)
# install cmake find_package configuration file
# install cmake find_package configuration file
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake"
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
Config.cmake"
DESTINATION lib/cmake/
${
PROJECT_NAME
}
COMPONENT dev
)
DESTINATION lib/cmake/
${
PROJECT_NAME
}
COMPONENT dev
)
...
@@ -92,3 +97,5 @@ install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
...
@@ -92,3 +97,5 @@ install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
# install script for Makefiles
# install script for Makefiles
install
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config DESTINATION bin COMPONENT dev
)
install
(
PROGRAMS
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
-config DESTINATION bin COMPONENT dev
)
# install configuration file for pkgconfig
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/
${
PROJECT_NAME
}
.pc"
DESTINATION share/pkgconfig 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