Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
0c3ec998
Commit
0c3ec998
authored
Nov 15, 2017
by
Steinar H. Gunderson
Committed by
Dominic Hamon
Nov 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a pkg-config file, for the benefit of projects not using CMake. (#480)
parent
ed5764ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
AUTHORS
AUTHORS
+1
-0
benchmark.pc.in
cmake/benchmark.pc.in
+11
-0
CMakeLists.txt
src/CMakeLists.txt
+7
-0
No files found.
AUTHORS
View file @
0c3ec998
...
...
@@ -36,6 +36,7 @@ Paul Redmond <paul.redmond@gmail.com>
Radoslav Yovchev <radoslav.tm@gmail.com>
Roman Lebedev <lebedev.ri@gmail.com>
Shuo Chen <chenshuo@chenshuo.com>
Steinar H. Gunderson <sgunderson@bigfoot.com>
Yixuan Qiu <yixuanq@gmail.com>
Yusuke Suzuki <utatane.tea@gmail.com>
Zbigniew Skowron <zbychs@gmail.com>
cmake/benchmark.pc.in
0 → 100644
View file @
0c3ec998
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: @PROJECT_NAME@
Description: Google microbenchmark framework
Version: @VERSION@
Libs: -L${libdir} -lbenchmark
Cflags: -I${includedir}
src/CMakeLists.txt
View file @
0c3ec998
...
...
@@ -38,11 +38,13 @@ set(include_install_dir "include")
set
(
lib_install_dir
"lib/"
)
set
(
bin_install_dir
"bin/"
)
set
(
config_install_dir
"lib/cmake/
${
PROJECT_NAME
}
"
)
set
(
pkgconfig_install_dir
"lib/pkgconfig"
)
set
(
generated_dir
"
${
CMAKE_CURRENT_BINARY_DIR
}
/generated"
)
set
(
version_config
"
${
generated_dir
}
/
${
PROJECT_NAME
}
ConfigVersion.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
(
namespace
"
${
PROJECT_NAME
}
::"
)
...
...
@@ -53,6 +55,7 @@ write_basic_package_version_file(
)
configure_file
(
"
${
PROJECT_SOURCE_DIR
}
/cmake/Config.cmake.in"
"
${
project_config
}
"
@ONLY
)
configure_file
(
"
${
PROJECT_SOURCE_DIR
}
/cmake/benchmark.pc.in"
"
${
pkg_config
}
"
@ONLY
)
if
(
BENCHMARK_ENABLE_INSTALL
)
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
...
...
@@ -74,6 +77,10 @@ if (BENCHMARK_ENABLE_INSTALL)
DESTINATION
"
${
config_install_dir
}
"
)
install
(
FILES
"
${
pkg_config
}
"
DESTINATION
"
${
pkgconfig_install_dir
}
"
)
install
(
EXPORT
"
${
targets_export_name
}
"
NAMESPACE
"
${
namespace
}
"
DESTINATION
"
${
config_install_dir
}
"
)
...
...
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