aboutsummaryrefslogtreecommitdiff
path: root/cube
diff options
context:
space:
mode:
authorJuan Ramos <juan@lunarg.com>2022-12-27 15:17:57 -0700
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>2022-12-27 16:20:32 -0700
commitcd0f8517cc6d0d3911917ec4e7f67c599ec66bcf (patch)
tree9acfc428502142a93da4fa30b8609378a8fa5b8c /cube
parentbc40543f2c4658918498f1ef415650ccf8ccaa01 (diff)
downloadusermoji-cd0f8517cc6d0d3911917ec4e7f67c599ec66bcf.tar.xz
cmake: Use PkgConfig to find DirectFB
Diffstat (limited to 'cube')
-rw-r--r--cube/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/cube/CMakeLists.txt b/cube/CMakeLists.txt
index e96b359a..a2f026e7 100644
--- a/cube/CMakeLists.txt
+++ b/cube/CMakeLists.txt
@@ -108,8 +108,7 @@ if(UNIX AND NOT APPLE) # i.e. Linux
endif()
if(BUILD_WSI_DIRECTFB_SUPPORT)
- find_package(DirectFB REQUIRED)
- include_directories(${DIRECTFB_INCLUDE_DIR})
+ pkg_check_modules(DirectFB REQUIRED QUIET IMPORTED_TARGET directfb)
endif()
endif()
@@ -161,8 +160,7 @@ elseif(UNIX AND NOT APPLE) # i.e. Linux
if(NOT BUILD_WSI_DIRECTFB_SUPPORT)
message(FATAL_ERROR "Selected DIRECTFB for vkcube build but not building DirectFB support")
endif()
- set(CUBE_INCLUDE_DIRS ${DIRECTFB_INCLUDE_DIR} ${CUBE_INCLUDE_DIRS})
- link_libraries(${DIRECTFB_LIBRARIES})
+ link_libraries(PkgConfig::DirectFB)
set(CUBE_PLATFORM VK_USE_PLATFORM_DIRECTFB_EXT)
elseif(CUBE_WSI_SELECTION STREQUAL "DISPLAY")
set(CUBE_PLATFORM VK_USE_PLATFORM_DISPLAY_KHR)