Skip to content

Commit b956a9b

Browse files
committed
Add pkg-config
1 parent 51f25b1 commit b956a9b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ install(FILES include/mpcalloc.h DESTINATION include/)
7171

7272
install(FILES src/sctk_alloc_posix.h src/sctk_alloc_common.h src/sctk_alloc_to_recode.h src/sctk_alloc_on_node.h DESTINATION include/mpcalloc/)
7373

74+
#Pkg-Config
75+
76+
configure_file(mpcalloc.pc.in mpcalloc.pc @ONLY)
77+
install(FILES ${CMAKE_BINARY_DIR}/mpcalloc.pc DESTINATION lib/pkgconfig/)
7478

7579
#Compilation Helpers
7680

mpcalloc.pc.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
libdir=${prefix}/lib
3+
includedir=${prefix}/include
4+
5+
Name: mpcalloc
6+
Description: A thread-aware and NUMA-aware memory allocator
7+
Version: 0.1
8+
Libs: -L${libdir} -Wl,-rpath ${libdir} -lmpcalloc
9+
Cflags: -I${includedir} -I${includedir}/mpcalloc/

0 commit comments

Comments
 (0)