Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
bb1db868
Commit
bb1db868
authored
Aug 01, 2017
by
Harris Hancock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Install new .pc files
Includes a small refactor to make adding filenames simpler.
parent
00db306c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
CMakeLists.txt
c++/CMakeLists.txt
+16
-13
No files found.
c++/CMakeLists.txt
View file @
bb1db868
...
...
@@ -120,23 +120,26 @@ if(NOT MSVC) # Don't install pkg-config files when building with MSVC
set
(
PTHREAD_CFLAGS
"-pthread"
)
set
(
STDLIB_FLAG
)
# TODO: Unsupported
configure_file
(
kj.pc.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kj.pc"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kj.pc"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
configure_file
(
capnp.pc.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/capnp.pc"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/capnp.pc"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
set
(
CAPNP_PKG_CONFIG_FILES
pkgconfig/kj.pc
pkgconfig/capnp.pc
)
if
(
NOT CAPNP_LITE
)
configure_file
(
kj-async.pc.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kj-async.pc"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kj-async.pc"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
configure_file
(
capnp-rpc.pc.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/capnp-rpc.pc"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/capnp-rpc.pc"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
configure_file
(
capnp-json.pc.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/capnp-json.pc"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/capnp-json.pc"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
list
(
APPEND CAPNP_PKG_CONFIG_FILES
pkgconfig/kj-async.pc
pkgconfig/kj-http.pc
pkgconfig/kj-test.pc
pkgconfig/capnp-rpc.pc
pkgconfig/capnp-json.pc
)
endif
()
foreach
(
pcfile
${
CAPNP_PKG_CONFIG_FILES
}
)
configure_file
(
${
pcfile
}
.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
pcfile
}
"
@ONLY
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
pcfile
}
"
DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig"
)
endforeach
()
unset
(
STDLIB_FLAG
)
unset
(
PTHREAD_CFLAGS
)
unset
(
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