Examples: Clean up WIN32_EXECUTABLE, MACOSX_BUNDLE properties
Both are FALSE by default, so no point in explicitly setting them to FALSE. In addition, dbus/listnames is a command line tool. No reason to set WIN32_EXECUTABLE, MACOSX_BUNDLE here. Pick-to: 6.3 Change-Id: I99aaf27a0267c5575bd2ee5b6183991fce721f44 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
7cf8ecf4ce
commit
131681652e
@ -19,11 +19,6 @@ qt_add_executable(cbordump
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(cbordump PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(cbordump PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
|
@ -26,11 +26,6 @@ qt_add_executable(convert
|
||||
xmlconverter.cpp xmlconverter.h
|
||||
)
|
||||
|
||||
set_target_properties(convert PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(convert PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
|
@ -22,11 +22,6 @@ qt_add_executable(savegame
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(savegame PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(savegame PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(semaphores
|
||||
semaphores.cpp
|
||||
)
|
||||
|
||||
set_target_properties(semaphores PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(semaphores PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(waitconditions
|
||||
waitconditions.cpp
|
||||
)
|
||||
|
||||
set_target_properties(waitconditions PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(waitconditions PUBLIC
|
||||
Qt::Core
|
||||
)
|
||||
|
@ -19,22 +19,11 @@ qt_add_executable(listnames
|
||||
listnames.cpp
|
||||
)
|
||||
|
||||
set_target_properties(listnames PROPERTIES
|
||||
WIN32_EXECUTABLE TRUE
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(listnames PUBLIC
|
||||
Qt::Core
|
||||
Qt::DBus
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
set_target_properties(listnames PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS listnames
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(dnslookup
|
||||
dnslookup.cpp dnslookup.h
|
||||
)
|
||||
|
||||
set_target_properties(dnslookup PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(dnslookup PUBLIC
|
||||
Qt::Core
|
||||
Qt::Network
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(download
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(download PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(download PUBLIC
|
||||
Qt::Core
|
||||
Qt::Network
|
||||
|
@ -21,11 +21,6 @@ qt_add_executable(downloadmanager
|
||||
textprogressbar.cpp textprogressbar.h
|
||||
)
|
||||
|
||||
set_target_properties(downloadmanager PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(downloadmanager PUBLIC
|
||||
Qt::Core
|
||||
Qt::Network
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(mapdemo
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(mapdemo PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(mapdemo PUBLIC
|
||||
Qt::Concurrent
|
||||
Qt::Core
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(runfunction
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(runfunction PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(runfunction PUBLIC
|
||||
Qt::Concurrent
|
||||
Qt::Core
|
||||
|
@ -19,11 +19,6 @@ qt_add_executable(wordcount
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(wordcount PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(wordcount PUBLIC
|
||||
Qt::Concurrent
|
||||
Qt::Core
|
||||
|
Loading…
Reference in New Issue
Block a user