Add wlroots as a dependency
This commit is contained in:
parent
61764bc1f5
commit
73648896a0
|
@ -53,8 +53,6 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||||
find_program(iwyu NAMES include-what-you-use iwyu REQUIRED)
|
find_program(iwyu NAMES include-what-you-use iwyu REQUIRED)
|
||||||
set(iwyu_path ${iwyu})
|
set(iwyu_path ${iwyu})
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
|
||||||
|
|
||||||
set(MemoryCheckCommand "valgrind")
|
set(MemoryCheckCommand "valgrind")
|
||||||
|
|
||||||
# Let's nicely support folders in IDEs
|
# Let's nicely support folders in IDEs
|
||||||
|
|
|
@ -36,3 +36,8 @@ endif()
|
||||||
include(GenerateExportHeader)
|
include(GenerateExportHeader)
|
||||||
|
|
||||||
generate_export_header(feynman EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/src/export.h)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue