Prototype: add dependency to liburing
This commit is contained in:
parent
9e0f2aed6b
commit
be38f2a0d1
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ add_compile_options("-Wall")
|
|||
|
||||
# dependencies via pkg-config
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LUR REQUIRED IMPORTED_TARGET liburing>=2.9)
|
||||
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtkmm-3.0>=3.20)
|
||||
pkg_check_modules(XLIB REQUIRED IMPORTED_TARGET x11>=1.7)
|
||||
pkg_check_modules(EGL REQUIRED IMPORTED_TARGET egl>=1.5)
|
||||
|
|
@ -42,6 +43,7 @@ file(GLOB_RECURSE demo_uring_headers CONFIGURE_DEPENDS "*.hpp")
|
|||
add_executable(demo_uring ${demo_uring_sources} ${demo_uring_headers})
|
||||
target_compile_features(demo_uring PUBLIC cxx_std_17)
|
||||
target_include_directories(demo_uring PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
||||
target_link_libraries(demo_uring PRIVATE PkgConfig::LUR)
|
||||
target_link_libraries(demo_uring PRIVATE PkgConfig::GTK)
|
||||
target_link_libraries(demo_uring PRIVATE PkgConfig::XLIB)
|
||||
target_link_libraries(demo_uring PRIVATE PkgConfig::EGL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue