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. Change-Id: I99aaf27a0267c5575bd2ee5b6183991fce721f44 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit 131681652eb609a19eac963222c553442138ae12) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5855f6c761
commit
e1dd005607
@ -19,11 +19,6 @@ qt_add_executable(cbordump
|
|||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(cbordump PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(cbordump PUBLIC
|
target_link_libraries(cbordump PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -26,11 +26,6 @@ qt_add_executable(convert
|
|||||||
xmlconverter.cpp xmlconverter.h
|
xmlconverter.cpp xmlconverter.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(convert PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(convert PUBLIC
|
target_link_libraries(convert PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -22,11 +22,6 @@ qt_add_executable(savegame
|
|||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(savegame PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(savegame PUBLIC
|
target_link_libraries(savegame PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(semaphores
|
|||||||
semaphores.cpp
|
semaphores.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(semaphores PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(semaphores PUBLIC
|
target_link_libraries(semaphores PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(waitconditions
|
|||||||
waitconditions.cpp
|
waitconditions.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(waitconditions PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(waitconditions PUBLIC
|
target_link_libraries(waitconditions PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
)
|
)
|
||||||
|
@ -19,22 +19,11 @@ qt_add_executable(listnames
|
|||||||
listnames.cpp
|
listnames.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(listnames PROPERTIES
|
|
||||||
WIN32_EXECUTABLE TRUE
|
|
||||||
MACOSX_BUNDLE TRUE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(listnames PUBLIC
|
target_link_libraries(listnames PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::DBus
|
Qt::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WIN32)
|
|
||||||
set_target_properties(listnames PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(TARGETS listnames
|
install(TARGETS listnames
|
||||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(dnslookup
|
|||||||
dnslookup.cpp dnslookup.h
|
dnslookup.cpp dnslookup.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(dnslookup PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(dnslookup PUBLIC
|
target_link_libraries(dnslookup PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Network
|
Qt::Network
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(download
|
|||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(download PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(download PUBLIC
|
target_link_libraries(download PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Network
|
Qt::Network
|
||||||
|
@ -21,11 +21,6 @@ qt_add_executable(downloadmanager
|
|||||||
textprogressbar.cpp textprogressbar.h
|
textprogressbar.cpp textprogressbar.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(downloadmanager PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(downloadmanager PUBLIC
|
target_link_libraries(downloadmanager PUBLIC
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Network
|
Qt::Network
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(mapdemo
|
|||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(mapdemo PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(mapdemo PUBLIC
|
target_link_libraries(mapdemo PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(runfunction
|
|||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(runfunction PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(runfunction PUBLIC
|
target_link_libraries(runfunction PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
@ -19,11 +19,6 @@ qt_add_executable(wordcount
|
|||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(wordcount PROPERTIES
|
|
||||||
WIN32_EXECUTABLE FALSE
|
|
||||||
MACOSX_BUNDLE FALSE
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(wordcount PUBLIC
|
target_link_libraries(wordcount PUBLIC
|
||||||
Qt::Concurrent
|
Qt::Concurrent
|
||||||
Qt::Core
|
Qt::Core
|
||||||
|
Loading…
x
Reference in New Issue
Block a user