force GUI app on win32
This commit is contained in:
parent
f904f14dfe
commit
5cdc7f1164
1 changed files with 2 additions and 2 deletions
|
@ -1,13 +1,13 @@
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
enable_language("RC")
|
enable_language("RC")
|
||||||
add_executable(app main.cpp ${CMAKE_BINARY_DIR}/rssguard.rc)
|
add_executable(app main.cpp ${CMAKE_BINARY_DIR}/rssguard.rc)
|
||||||
|
set_property(TARGET app PROPERTY WIN32_EXECUTABLE true)
|
||||||
else()
|
else()
|
||||||
add_executable(app main.cpp)
|
add_executable(app main.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(app PRIVATE RSSGUARD_DLLSPEC=Q_DECL_IMPORT)
|
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
|
target_include_directories(app PUBLIC
|
||||||
${CMAKE_BINARY_DIR}/src/librssguard/rssguard_autogen/include
|
${CMAKE_BINARY_DIR}/src/librssguard/rssguard_autogen/include
|
||||||
|
|
Loading…
Add table
Reference in a new issue