Skip to content

Commit

Permalink
add template for pkg-config (Cylix#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl authored and Cylix committed Aug 30, 2018
1 parent 5c7e76d commit 89c217b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ endforeach()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_PKGCONFIG_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pkgconfig)


###
# pkg-config
###
configure_file("tacopie.pc.in" "${CMAKE_PKGCONFIG_OUTPUT_DIRECTORY}/tacopie.pc" @ONLY)


###
Expand Down
9 changes: 9 additions & 0 deletions tacopie.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/lib
includedir=${prefix}/include

Name: @PROJECT_NAME@
Description: tacopie is a multi-platform TCP Client & Server C++11 library.
Version: @PROJECT_VERSION@
Libs: -L${libdir} -ltacopie
Cflags: -I${includedir}

0 comments on commit 89c217b

Please sign in to comment.