-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libpolycube: provide pkg-config (#115)
Services that are not shipped with polycube (standalone services) need to know which libraries and headers files should use in the building process. This commit adds a pkg-config file for libpolycube, so services can use it for compiling. This commit also fixes some include errors to allow such standalone services to compile. Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
- Loading branch information
1 parent
f2d20a7
commit 9bb2ce7
Showing
8 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
add_subdirectory(src) | ||
|
||
install(DIRECTORY include/ DESTINATION include) | ||
configure_file(libpolycube.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libpolycube.pc @ONLY) | ||
|
||
install(DIRECTORY include/ DESTINATION /usr/include) | ||
|
||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpolycube.pc | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
libdir=${prefix}/lib | ||
includedir=/usr/include | ||
|
||
Name: libpolycube | ||
Version: @REVISION@ | ||
Description: Polycube library | ||
Requires: | ||
Requires.private: libtins | ||
Libs: -L${libdir} -lpolycube -luuid -ltins | ||
Cflags: -I${includedir} -I${includedir}/polycube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
install(DIRECTORY spdlog DESTINATION include/polycube) | ||
install(DIRECTORY spdlog DESTINATION /usr/include/polycube) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters