From 8ca71a4ced13c50ecd1e3b9d9c15546ac0d48045 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enar=20V=C3=A4ikene?= Date: Mon, 4 Jun 2012 12:07:57 +0300 Subject: [PATCH] Changes to the build system to enable building without QtGUI. --- src/apps/FileFinder/CMakeLists.txt | 4 +++- src/apps/PswGen/CMakeLists.txt | 4 +++- src/libs/CMakeLists.txt | 4 +++- src/main/CMakeLists.txt | 4 +++- src/plugins/CMakeLists.txt | 8 +++++--- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/apps/FileFinder/CMakeLists.txt b/src/apps/FileFinder/CMakeLists.txt index cea6206..74c9f28 100644 --- a/src/apps/FileFinder/CMakeLists.txt +++ b/src/apps/FileFinder/CMakeLists.txt @@ -1,2 +1,4 @@ add_subdirectory(Engine) -add_subdirectory(GUI) +if(QT_QTGUI_FOUND) + add_subdirectory(GUI) +endif(QT_QTGUI_FOUND) diff --git a/src/apps/PswGen/CMakeLists.txt b/src/apps/PswGen/CMakeLists.txt index 01770c2..3eadf22 100644 --- a/src/apps/PswGen/CMakeLists.txt +++ b/src/apps/PswGen/CMakeLists.txt @@ -1,6 +1,8 @@ set(eVaf_INCLUDE ${eVaf_INCLUDE} ${CMAKE_SOURCE_DIR}/src/apps/PswGen) -add_subdirectory(GUI) +if(QT_QTGUI_FOUND) + add_subdirectory(GUI) +endif(QT_QTGUI_FOUND) add_subdirectory(CLI) add_subdirectory(Generator) add_subdirectory(Storage) diff --git a/src/libs/CMakeLists.txt b/src/libs/CMakeLists.txt index 09e2f82..eabd2bc 100644 --- a/src/libs/CMakeLists.txt +++ b/src/libs/CMakeLists.txt @@ -1,3 +1,5 @@ add_subdirectory(Plugins) add_subdirectory(Common) -add_subdirectory(Gui) +if(QT_QTGUI_FOUND) + add_subdirectory(Gui) +endif(QT_QTGUI_FOUND) diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt index 362aba6..e5169f7 100644 --- a/src/main/CMakeLists.txt +++ b/src/main/CMakeLists.txt @@ -1,2 +1,4 @@ -add_subdirectory(GUI) +if(QT_QTGUI_FOUND) + add_subdirectory(GUI) +endif(QT_QTGUI_FOUND) add_subdirectory(CLI) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 133d289..bffa796 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -1,3 +1,5 @@ -add_subdirectory(SdiWindow) -add_subdirectory(LogView) -add_subdirectory(Test) +if(QT_QTGUI_FOUND) + add_subdirectory(SdiWindow) + add_subdirectory(LogView) + add_subdirectory(Test) +endif(QT_QTGUI_FOUND) -- 2.47.0