mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 15:35:58 +01:00
CMake: properly choose pkg-config or submodule sdbus
This commit is contained in:
parent
c0b606460a
commit
df8c154f57
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ pkg_check_modules(SDBUS IMPORTED_TARGET sdbus-c++)
|
|||
if(NOT SDBUS_FOUND)
|
||||
include_directories("subprojects/sdbus-cpp/include/")
|
||||
add_subdirectory(subprojects/sdbus-cpp)
|
||||
add_library(PkgConfig::SDBUS ALIAS sdbus-c++)
|
||||
endif()
|
||||
|
||||
# same for hyprland-protocols
|
||||
|
@ -58,7 +59,7 @@ endif()
|
|||
|
||||
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||
add_executable(xdg-desktop-portal-hyprland ${SRCFILES})
|
||||
target_link_libraries(xdg-desktop-portal-hyprland PRIVATE rt sdbus-c++ Threads::Threads PkgConfig::deps)
|
||||
target_link_libraries(xdg-desktop-portal-hyprland PRIVATE rt PkgConfig::SDBUS Threads::Threads PkgConfig::deps)
|
||||
|
||||
# protocols
|
||||
find_program(WaylandScanner NAMES wayland-scanner)
|
||||
|
|
Loading…
Reference in a new issue