Add wlroots as a dependency

This commit is contained in:
Sameer Rahmani 2022-08-07 11:07:08 +01:00
parent 61764bc1f5
commit 73648896a0
2 changed files with 5 additions and 2 deletions

View File

@ -53,8 +53,6 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
find_program(iwyu NAMES include-what-you-use iwyu REQUIRED)
set(iwyu_path ${iwyu})
find_package(PkgConfig REQUIRED)
set(MemoryCheckCommand "valgrind")
# Let's nicely support folders in IDEs

View File

@ -36,3 +36,8 @@ endif()
include(GenerateExportHeader)
generate_export_header(feynman EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/src/export.h)
find_package(PkgConfig REQUIRED)
pkg_check_modules(WLROOTS REQUIRED IMPORTED_TARGET wlroots)
target_link_libraries(feynman PUBLIC PkgConfig::WLROOTS)