force GUI app on win32

This commit is contained in:
Martin Rotter 2022-01-31 11:05:35 +01:00
parent f904f14dfe
commit 5cdc7f1164

View File

@ -1,13 +1,13 @@
if(WIN32)
enable_language("RC")
add_executable(app main.cpp ${CMAKE_BINARY_DIR}/rssguard.rc)
set_property(TARGET app PROPERTY WIN32_EXECUTABLE true)
else()
add_executable(app main.cpp)
endif()
target_compile_definitions(app PRIVATE RSSGUARD_DLLSPEC=Q_DECL_IMPORT)
set_target_properties (app PROPERTIES OUTPUT_NAME ${CMAKE_PROJECT_NAME})
set_target_properties(app PROPERTIES OUTPUT_NAME ${CMAKE_PROJECT_NAME})
target_include_directories(app PUBLIC
${CMAKE_BINARY_DIR}/src/librssguard/rssguard_autogen/include