diff options
author | Albert Astals Cid <aacid@kde.org> | 2022-08-23 22:31:24 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2022-08-23 22:31:24 +0200 |
commit | 619bfc1f280eed11523e6f8756460ed2598769b9 (patch) | |
tree | 518a096414d852fb04c8bf77cf382f80b2fad5de /test | |
parent | 5bec49749b9a2a9b4779a977f673531b42470264 (diff) |
cmake: Better linking against GTK3
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4d57f665..6243c56d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -14,11 +14,6 @@ endif () if (GTK_FOUND) include_directories( - SYSTEM - ${GTK3_INCLUDE_DIRS} - ) - - include_directories( ${CMAKE_SOURCE_DIR}/glib ${CMAKE_BINARY_DIR}/glib ) @@ -27,7 +22,7 @@ if (GTK_FOUND) gtk-test.cc ) poppler_add_test(gtk-test BUILD_GTK_TESTS ${gtk_splash_test_SRCS}) - target_link_libraries(gtk-test ${CAIRO_LIBRARIES} poppler-glib ${GTK3_LIBRARIES}) + target_link_libraries(gtk-test ${CAIRO_LIBRARIES} poppler-glib PkgConfig::GTK3) if (HAVE_CAIRO) @@ -38,7 +33,7 @@ if (GTK_FOUND) ${CMAKE_SOURCE_DIR}/poppler/CairoRescaleBox.cc ) poppler_add_test(pdf-inspector BUILD_GTK_TESTS ${pdf_inspector_SRCS}) - target_link_libraries(pdf-inspector ${CAIRO_LIBRARIES} Freetype::Freetype ${common_libs} ${GTK3_LIBRARIES} poppler) + target_link_libraries(pdf-inspector ${CAIRO_LIBRARIES} Freetype::Freetype ${common_libs} PkgConfig::GTK3 poppler) target_compile_definitions(pdf-inspector PRIVATE -DSRC_DIR="${CMAKE_CURRENT_SOURCE_DIR}") endif () |