Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
fmt
Commits
9d0c9c4b
Commit
9d0c9c4b
authored
Oct 24, 2018
by
Cole Mickens
Committed by
Victor Zverovich
Oct 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: output share/fmt.pc
parent
2d2326a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
.gitignore
.gitignore
+1
-0
CMakeLists.txt
CMakeLists.txt
+9
-0
support/cmake/fmt.pc.in
support/cmake/fmt.pc.in
+11
-0
No files found.
.gitignore
View file @
9d0c9c4b
...
@@ -31,3 +31,4 @@ CMakeFiles
...
@@ -31,3 +31,4 @@ CMakeFiles
FMT.build
FMT.build
Makefile
Makefile
run-msbuild.bat
run-msbuild.bat
fmt.pc
CMakeLists.txt
View file @
9d0c9c4b
...
@@ -202,6 +202,7 @@ if (FMT_INSTALL)
...
@@ -202,6 +202,7 @@ if (FMT_INSTALL)
"Installation directory for cmake files, relative to
${
CMAKE_INSTALL_PREFIX
}
."
)
"Installation directory for cmake files, relative to
${
CMAKE_INSTALL_PREFIX
}
."
)
set
(
version_config
${
PROJECT_BINARY_DIR
}
/fmt-config-version.cmake
)
set
(
version_config
${
PROJECT_BINARY_DIR
}
/fmt-config-version.cmake
)
set
(
project_config
${
PROJECT_BINARY_DIR
}
/fmt-config.cmake
)
set
(
project_config
${
PROJECT_BINARY_DIR
}
/fmt-config.cmake
)
set
(
pkgconfig
${
PROJECT_BINARY_DIR
}
/fmt.pc
)
set
(
targets_export_name fmt-targets
)
set
(
targets_export_name fmt-targets
)
set
(
INSTALL_TARGETS fmt
)
set
(
INSTALL_TARGETS fmt
)
...
@@ -215,11 +216,18 @@ if (FMT_INSTALL)
...
@@ -215,11 +216,18 @@ if (FMT_INSTALL)
set
(
FMT_INC_DIR
${
CMAKE_INSTALL_INCLUDEDIR
}
/fmt CACHE STRING
set
(
FMT_INC_DIR
${
CMAKE_INSTALL_INCLUDEDIR
}
/fmt CACHE STRING
"Installation directory for include files, relative to
${
CMAKE_INSTALL_PREFIX
}
."
)
"Installation directory for include files, relative to
${
CMAKE_INSTALL_PREFIX
}
."
)
set
(
FMT_PKGCONFIG_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/share/pkgconfig"
CACHE PATH
"Installation directory for pkgconfig (.pc) files, relative to
${
CMAKE_INSTALL_PREFIX
}
."
)
# Generate the version, config and target files into the build directory.
# Generate the version, config and target files into the build directory.
write_basic_package_version_file
(
write_basic_package_version_file
(
${
version_config
}
${
version_config
}
VERSION
${
FMT_VERSION
}
VERSION
${
FMT_VERSION
}
COMPATIBILITY AnyNewerVersion
)
COMPATIBILITY AnyNewerVersion
)
configure_file
(
"
${
PROJECT_SOURCE_DIR
}
/support/cmake/fmt.pc.in"
"
${
pkgconfig
}
"
@ONLY
)
configure_package_config_file
(
configure_package_config_file
(
${
PROJECT_SOURCE_DIR
}
/support/cmake/fmt-config.cmake.in
${
PROJECT_SOURCE_DIR
}
/support/cmake/fmt-config.cmake.in
${
project_config
}
${
project_config
}
...
@@ -240,6 +248,7 @@ if (FMT_INSTALL)
...
@@ -240,6 +248,7 @@ if (FMT_INSTALL)
install
(
TARGETS
${
INSTALL_TARGETS
}
EXPORT
${
targets_export_name
}
install
(
TARGETS
${
INSTALL_TARGETS
}
EXPORT
${
targets_export_name
}
DESTINATION
${
FMT_LIB_DIR
}
)
DESTINATION
${
FMT_LIB_DIR
}
)
install
(
FILES
${
FMT_HEADERS
}
DESTINATION
${
FMT_INC_DIR
}
)
install
(
FILES
${
FMT_HEADERS
}
DESTINATION
${
FMT_INC_DIR
}
)
install
(
FILES
"
${
pkgconfig
}
"
DESTINATION
"
${
FMT_PKGCONFIG_DIR
}
"
)
endif
()
endif
()
if
(
FMT_DOC
)
if
(
FMT_DOC
)
...
...
support/cmake/fmt.pc.in
0 → 100644
View file @
9d0c9c4b
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_LIBDIR@
includedir=@CMAKE_INSTALL_INCLUDEDIR@
Name: fmt
Description: A modern formatting library
Version: @FMT_VERSION@
Libs: -L${libdir} -lfmt
Cflags: -I${includedir}
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