From 4d37a513e4347dfd1059d08d6f18b9c77d3c9fbe Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sat, 16 Jan 2021 17:57:36 +0100 Subject: [PATCH] Format cmake --- ScreenPlayWallpaper/CMakeLists.txt | 8 +++----- ScreenPlayWidget/CMakeLists.txt | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ScreenPlayWallpaper/CMakeLists.txt b/ScreenPlayWallpaper/CMakeLists.txt index a12a089e..2a2137a5 100644 --- a/ScreenPlayWallpaper/CMakeLists.txt +++ b/ScreenPlayWallpaper/CMakeLists.txt @@ -19,8 +19,6 @@ elseif(UNIX) set(headers_plattform src/linuxwindow.h) endif() - - set(src main.cpp src/basewindow.cpp) set(headers src/basewindow.h) @@ -33,9 +31,9 @@ endif() add_executable(${PROJECT_NAME} ${src} ${headers} ${src_plattform} ${headers_plattform} ${resources}) if(WIN32) -# Disable console window on Windows -# https://stackoverflow.com/questions/8249028/how-do-i-keep-my-qt-c-program-from-opening-a-console-in-windows -set_property(TARGET ${PROJECT_NAME} PROPERTY WIN32_EXECUTABLE true) + # Disable console window on Windows + # https://stackoverflow.com/questions/8249028/how-do-i-keep-my-qt-c-program-from-opening-a-console-in-windows + set_property(TARGET ${PROJECT_NAME} PROPERTY WIN32_EXECUTABLE true) endif() if(APPLE) diff --git a/ScreenPlayWidget/CMakeLists.txt b/ScreenPlayWidget/CMakeLists.txt index d8821c89..efc08835 100644 --- a/ScreenPlayWidget/CMakeLists.txt +++ b/ScreenPlayWidget/CMakeLists.txt @@ -18,18 +18,16 @@ else() qtquick_compiler_add_resources(resources SPWidgetResources.qrc) endif() - add_executable(${PROJECT_NAME} ${src} ${headers} ${resources}) if(WIN32) -# Disable console window on Windows -# https://stackoverflow.com/questions/8249028/how-do-i-keep-my-qt-c-program-from-opening-a-console-in-windows -set_property(TARGET ${PROJECT_NAME} PROPERTY WIN32_EXECUTABLE true) + # Disable console window on Windows + # https://stackoverflow.com/questions/8249028/how-do-i-keep-my-qt-c-program-from-opening-a-console-in-windows + set_property(TARGET ${PROJECT_NAME} PROPERTY WIN32_EXECUTABLE true) endif() if(APPLE) set_target_properties(${PROJECT_NAME} PROPERTIES MACOSX_BUNDLE true) endif() - target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core ScreenPlaySDK)