Commit 4ab4e0ce authored by Matthieu Dorier's avatar Matthieu Dorier

added mechanism to generate pkgconfig file

parent b3db2eab
......@@ -40,6 +40,11 @@ write_basic_package_version_file(
# generate our config file for find_package()
configure_file (remi-config.cmake.in remi-config.cmake @ONLY)
# some bits for the pkg-config file
set (DEST_DIR "${CMAKE_INSTALL_PREFIX}")
set (PRIVATE_LIBS "-lthallium")
configure_file ("remi.pc.in" "remi.pc" @ONLY)
#
# "make install" rules
#
......@@ -56,3 +61,5 @@ install (FILES "${CMAKE_CURRENT_BINARY_DIR}/remi-config.cmake"
install (DIRECTORY ../include/remi
DESTINATION include
FILES_MATCHING PATTERN "*.h")
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/remi.pc"
DESTINATION "lib/pkgconfig/")
prefix=@DEST_DIR@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: remi
Description: REsource Migration Interface
Version: 0.1
Requires: thallium
Libs: -L${libdir} @PRIVATE_LIBS@
Cflags: -I${includedir}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment