Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
861d836d
Commit
861d836d
authored
Apr 15, 2016
by
Gabi Melman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #195 from njwhite/master
Generate & Install pkg-config File
parents
1d74f1d7
b7e3a103
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
.gitignore
.gitignore
+10
-1
CMakeLists.txt
CMakeLists.txt
+8
-0
cmake/spdlog.pc.in
cmake/spdlog.pc.in
+6
-0
No files found.
.gitignore
View file @
861d836d
...
@@ -33,4 +33,13 @@ example/*
...
@@ -33,4 +33,13 @@ example/*
!example/makefile
!example/makefile
!example/makefile.clang
!example/makefile.clang
# generated files
generated
# Cmake
CMakeCache.txt
CMakeFiles
CMakeScripts
Makefile
cmake_install.cmake
install_manifest.txt
CMakeLists.txt
View file @
861d836d
...
@@ -31,9 +31,11 @@ set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
...
@@ -31,9 +31,11 @@ set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
set
(
config_install_dir
"lib/cmake/
${
PROJECT_NAME
}
"
)
set
(
config_install_dir
"lib/cmake/
${
PROJECT_NAME
}
"
)
set
(
include_install_dir
"include"
)
set
(
include_install_dir
"include"
)
set
(
pkgconfig_install_dir
"lib/pkgconfig"
)
set
(
version_config
"
${
generated_dir
}
/
${
PROJECT_NAME
}
ConfigVersion.cmake"
)
set
(
version_config
"
${
generated_dir
}
/
${
PROJECT_NAME
}
ConfigVersion.cmake"
)
set
(
project_config
"
${
generated_dir
}
/
${
PROJECT_NAME
}
Config.cmake"
)
set
(
project_config
"
${
generated_dir
}
/
${
PROJECT_NAME
}
Config.cmake"
)
set
(
pkg_config
"
${
generated_dir
}
/
${
PROJECT_NAME
}
.pc"
)
set
(
targets_export_name
"
${
PROJECT_NAME
}
Targets"
)
set
(
targets_export_name
"
${
PROJECT_NAME
}
Targets"
)
set
(
namespace
"
${
PROJECT_NAME
}
::"
)
set
(
namespace
"
${
PROJECT_NAME
}
::"
)
...
@@ -44,6 +46,7 @@ write_basic_package_version_file(
...
@@ -44,6 +46,7 @@ write_basic_package_version_file(
# Note: use 'targets_export_name'
# Note: use 'targets_export_name'
configure_file
(
"cmake/Config.cmake.in"
"
${
project_config
}
"
@ONLY
)
configure_file
(
"cmake/Config.cmake.in"
"
${
project_config
}
"
@ONLY
)
configure_file
(
"cmake/spdlog.pc.in"
"
${
pkg_config
}
"
@ONLY
)
install
(
install
(
TARGETS spdlog
TARGETS spdlog
...
@@ -58,6 +61,11 @@ install(
...
@@ -58,6 +61,11 @@ install(
DESTINATION
"
${
config_install_dir
}
"
DESTINATION
"
${
config_install_dir
}
"
)
)
install
(
FILES
"
${
pkg_config
}
"
DESTINATION
"
${
pkgconfig_install_dir
}
"
)
install
(
install
(
EXPORT
"
${
targets_export_name
}
"
EXPORT
"
${
targets_export_name
}
"
NAMESPACE
"
${
namespace
}
"
NAMESPACE
"
${
namespace
}
"
...
...
cmake/spdlog.pc.in
0 → 100644
View file @
861d836d
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/include
Name: @PROJECT_NAME@
Description: Super fast C++ logging library.
Version: @PROJECT_VERSION@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment