|
|
@ -29,6 +29,7 @@ find_package(Qt5Quick REQUIRED) |
|
|
|
find_package(Qt5Qml REQUIRED) |
|
|
|
find_package(Qt5Network REQUIRED) |
|
|
|
qt5_wrap_ui(ui_Main.h Main.ui) |
|
|
|
qt5_add_resources(RESOURCE_ADDED Resources.qrc) |
|
|
|
|
|
|
|
# Set name of binary and add_executable() |
|
|
|
if (APPLE) |
|
|
@ -47,10 +48,10 @@ if (APPLE) |
|
|
|
set(MACOSX_BUNDLE_BUNDLE_NAME ${EXECUTEABLE}) |
|
|
|
include(BundleUtilities) |
|
|
|
|
|
|
|
add_executable(${EXECUTEABLE} MACOSX_BUNDLE Main.ui ${SRC_LIST}) |
|
|
|
add_executable(${EXECUTEABLE} MACOSX_BUNDLE Main.ui ${RESOURCE_ADDED} ${SRC_LIST}) |
|
|
|
else () |
|
|
|
set(EXECUTEABLE walleth) |
|
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST}) |
|
|
|
add_executable(${EXECUTEABLE} Main.ui ${RESOURCE_ADDED} ${SRC_LIST}) |
|
|
|
endif () |
|
|
|
|
|
|
|
qt5_use_modules(${EXECUTEABLE} Core Gui Widgets Network Quick Qml) |
|
|
|