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 sds/thallium!1
parents 6d68f413 81b88dd8
...@@ -57,3 +57,5 @@ xpkg_import_module (margo REQUIRED margo) ...@@ -57,3 +57,5 @@ xpkg_import_module (margo REQUIRED margo)
add_subdirectory (src) add_subdirectory (src)
add_subdirectory (test) add_subdirectory (test)
add_subdirectory (examples) add_subdirectory (examples)
...@@ -53,6 +53,11 @@ write_basic_package_version_file( ...@@ -53,6 +53,11 @@ write_basic_package_version_file(
# generate our config file for find_package() # generate our config file for find_package()
configure_file (thallium-config.cmake.in thallium-config.cmake @ONLY) 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 # "make install" rules
# #
...@@ -66,6 +71,8 @@ install (FILES "${CMAKE_CURRENT_BINARY_DIR}/thallium-config.cmake" ...@@ -66,6 +71,8 @@ install (FILES "${CMAKE_CURRENT_BINARY_DIR}/thallium-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/thallium-config-version.cmake" "${CMAKE_CURRENT_BINARY_DIR}/thallium-config-version.cmake"
"../cmake/xpkg-import.cmake" "../cmake/xpkg-import.cmake"
DESTINATION ${thallium-pkg} ) DESTINATION ${thallium-pkg} )
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/thallium.pc"
DESTINATION "lib/pkgconfig/")
install (DIRECTORY ../include/thallium install (DIRECTORY ../include/thallium
DESTINATION include DESTINATION include
FILES_MATCHING PATTERN "*.hpp") 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