From c40da7a5dd9db568fb0ec0af5bd89a25688bdd57 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sun, 3 May 2020 10:27:24 +0300 Subject: [PATCH] CMake: Fix header inclusion in autogenerated files --- src/gui/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 647bc6691..3d6eda992 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -192,7 +192,7 @@ add_library(qbt_gui STATIC torrentcreatordialog.ui trackerentriesdialog.ui updownratiodialog.ui - + # resources about.qrc ) @@ -203,12 +203,12 @@ endif() if (UNIX AND Qt5DBus_FOUND) target_link_libraries(qbt_gui PRIVATE Qt5::DBus) - + target_sources(qbt_gui PRIVATE qtnotify/notifications.h qtnotify/notifications.cpp ) - + find_package(X11) if (X11_FOUND) target_sources(qbt_gui PRIVATE @@ -218,6 +218,8 @@ if (UNIX AND Qt5DBus_FOUND) endif() endif() +target_include_directories(qbt_gui PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + target_link_libraries(qbt_gui PRIVATE qbt_base