From 52fbe44911c82b1848b4854a2e663036c9a2b46f Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Thu, 21 Jan 2016 12:37:21 +0100 Subject: [PATCH] Fix gui/no-gui --- src/daemon/CMakeLists.txt | 2 +- src/settings/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/daemon/CMakeLists.txt b/src/daemon/CMakeLists.txt index 23ccee3..e7703a2 100644 --- a/src/daemon/CMakeLists.txt +++ b/src/daemon/CMakeLists.txt @@ -1,6 +1,6 @@ ecm_add_app_icon(SNORENOTIFY_DAEMON_DEPS ICONS ${PROJECT_SOURCE_DIR}/data/128-apps-snore.png) -add_executable( snorenotify WIN32 main.cpp snorenotify.cpp trayicon.cpp ${SNORENOTIFY_DAEMON_DEPS}) +add_executable( snorenotify main.cpp snorenotify.cpp trayicon.cpp ${SNORENOTIFY_DAEMON_DEPS}) target_link_libraries( snorenotify Snore::Libsnore Snore::LibsnoreSettings) install(TARGETS snorenotify ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/src/settings/CMakeLists.txt b/src/settings/CMakeLists.txt index 98924c0..fb6aa14 100644 --- a/src/settings/CMakeLists.txt +++ b/src/settings/CMakeLists.txt @@ -1,11 +1,12 @@ ecm_add_app_icon(SNORENOTIFY_SETTINGS_DEPS ICONS ${PROJECT_SOURCE_DIR}/data/128-apps-snore.png) add_executable( snoresettings-cli main-cli.cpp settingsutils.cpp ${SNORENOTIFY_SETTINGS_DEPS}) +ecm_mark_nongui_executable(snoresettings-cli) target_link_libraries( snoresettings-cli Snore::Libsnore) if(Qt5Widgets_FOUND) qt5_wrap_ui(UI settingswindow.ui) - add_executable( snoresettings WIN32 main.cpp settingswindow.cpp settingsutils.cpp ${UI} ${SNORENOTIFY_SETTINGS_DEPS}) + add_executable( snoresettings main.cpp settingswindow.cpp settingsutils.cpp ${UI} ${SNORENOTIFY_SETTINGS_DEPS}) target_link_libraries( snoresettings Snore::Libsnore Snore::LibsnoreSettings) install(TARGETS snoresettings snoresettings-cli ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})