File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,14 @@ if (ENABLE_MPI_WRAPPERS)
5151 target_include_directories (mona BEFORE PUBLIC
5252 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >)
5353 list (APPEND MONA_TARGETS mona-mpi-wrappers)
54+ set (DEST_DIR "${CMAKE_INSTALL_PREFIX} " )
55+ configure_file ("mona-mpi.pc.in" "mona-mpi.pc" @ONLY)
5456endif ()
5557
5658#
5759# installation stuff (packaging and install commands)
5860#
59- write_basic_package_version_file(
61+ write_basic_package_version_file (
6062 "mona-config-version.cmake"
6163 VERSION ${MONA_VERSION}
6264 COMPATIBILITY AnyNewerVersion)
@@ -87,6 +89,8 @@ install (FILES "${CMAKE_CURRENT_SOURCE_DIR}/../include/mona.h"
8789if (ENABLE_MPI_WRAPPERS)
8890install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /../include/mona-mpi.h"
8991 DESTINATION include )
92+ install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /mona-mpi.pc"
93+ DESTINATION "lib/pkgconfig/" )
9094endif ()
9195install (FILES "${CMAKE_CURRENT_BINARY_DIR} /mona.pc"
9296 DESTINATION "lib/pkgconfig/" )
Original file line number Diff line number Diff line change 1+ prefix=@DEST_DIR@
2+ exec_prefix=${prefix}
3+ libdir=${prefix}/lib
4+ includedir=${prefix}/include
5+
6+ Name: mona-mpi
7+ Description: MPI wrapper for MoNA
8+ Version: @MONA_VERSION@
9+
10+ Requires: mona
11+ Libs: -L${libdir} -lmona-mpi-wrappers
12+ Cflags: -I${includedir}
You can’t perform that action at this time.
0 commit comments