Skip to content

Commit

Permalink
Merge pull request #42 from c-dilks/pkg-config
Browse files Browse the repository at this point in the history
build: generate `pkg-config` file
  • Loading branch information
gavalian authored Jan 15, 2024
2 parents 9da320c + 3acede6 commit 74a596d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,9 @@ configure_package_config_file( cmake/hipo4Config.cmake.in

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/hipo4Config.cmake ${CMAKE_CURRENT_BINARY_DIR}/hipo4ConfigVersion.cmake
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/hipo4)

configure_file(${PROJECT_SOURCE_DIR}/cmake/hipo4.pc.in
${PROJECT_BINARY_DIR}/hipo4.pc
@ONLY)
install(FILES ${PROJECT_BINARY_DIR}/hipo4.pc
DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
9 changes: 9 additions & 0 deletions cmake/hipo4.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
prefix=${pcfiledir}/../..
includedir=${prefix}/include
libdir=${prefix}/lib

Name: hipo4
Description: High Performance Output data format for experimental physics
Version: @HIPO_VERSION@
Libs: -L${libdir} -lhipo4
Cflags: -I${includedir}

0 comments on commit 74a596d

Please sign in to comment.