Skip to content

Commit 284ccb0

Browse files
bgoglinbmyates
authored andcommitted
Add level-zero.pc
Signed-off-by: Brice Goglin <[email protected]>
1 parent 282f431 commit 284ccb0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

source/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,9 @@ if(UNIX)
6767
${CMAKE_CURRENT_BINARY_DIR}/libze_loader.pc
6868
@ONLY)
6969
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libze_loader.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig" COMPONENT level-zero-devel)
70+
configure_file(
71+
${CMAKE_CURRENT_SOURCE_DIR}/level-zero.pc.in
72+
${CMAKE_CURRENT_BINARY_DIR}/level-zero.pc
73+
@ONLY)
74+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/level-zero.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig" COMPONENT level-zero-devel)
7075
endif()

source/level-zero.pc.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@CMAKE_INSTALL_PREFIX@
2+
includedir=${prefix}/include
3+
libdir=${prefix}/lib
4+
5+
6+
Name: Level Zero
7+
Description: Level Zero
8+
URL: https://github.com/oneapi-src/level-zero
9+
Version: @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@
10+
Requires: libze_loader
11+
Libs: -L${libdir}
12+
CFlags: -I${includedir}/level_zero

0 commit comments

Comments
 (0)