Commit 695bb6d0 authored by Matthieu Dorier's avatar Matthieu Dorier

Merge branch 'pkg-config' into 'master'

generate a pkg-config file for Thallium

See merge request !1
parents 6d68f413 81b88dd8
......@@ -57,3 +57,5 @@ xpkg_import_module (margo REQUIRED margo)
add_subdirectory (src)
add_subdirectory (test)
add_subdirectory (examples)
......@@ -53,6 +53,11 @@ write_basic_package_version_file(
# generate our config file for find_package()
configure_file (thallium-config.cmake.in thallium-config.cmake @ONLY)
# some bits for the pkg-config file
set (DEST_DIR "${CMAKE_INSTALL_PREFIX}")
set (PRIVATE_LIBS "-lthallium")
CONFIGURE_FILE("thallium.pc.in" "thallium.pc" @ONLY)
#
# "make install" rules
#
......@@ -66,6 +71,8 @@ install (FILES "${CMAKE_CURRENT_BINARY_DIR}/thallium-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/thallium-config-version.cmake"
"../cmake/xpkg-import.cmake"
DESTINATION ${thallium-pkg} )
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/thallium.pc"
DESTINATION "lib/pkgconfig/")
install (DIRECTORY ../include/thallium
DESTINATION include
FILES_MATCHING PATTERN "*.hpp")
......
prefix=@DEST_DIR@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: thallium
Description: A C++14 library wrapping Margo, Mercury, and Argobots and providing an object-oriented way to use these libraries.
Version: 0.1
Requires: margo
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