|
@ -25,6 +25,7 @@ find_package(Qt5WebKitWidgets REQUIRED) |
|
|
qt5_wrap_ui(ui_Main.h Main.ui) |
|
|
qt5_wrap_ui(ui_Main.h Main.ui) |
|
|
|
|
|
|
|
|
# Set name of binary and add_executable() |
|
|
# Set name of binary and add_executable() |
|
|
|
|
|
file(GLOB HEADERS "*.h") |
|
|
if (APPLE) |
|
|
if (APPLE) |
|
|
set(EXECUTEABLE AlethZero) |
|
|
set(EXECUTEABLE AlethZero) |
|
|
set(BIN_INSTALL_DIR ".") |
|
|
set(BIN_INSTALL_DIR ".") |
|
@ -41,14 +42,14 @@ if (APPLE) |
|
|
set(MACOSX_BUNDLE_ICON_FILE alethzero) |
|
|
set(MACOSX_BUNDLE_ICON_FILE alethzero) |
|
|
include(BundleUtilities) |
|
|
include(BundleUtilities) |
|
|
|
|
|
|
|
|
add_executable(${EXECUTEABLE} MACOSX_BUNDLE alethzero.icns Main.ui ${SRC_LIST}) |
|
|
add_executable(${EXECUTEABLE} MACOSX_BUNDLE alethzero.icns Main.ui ${SRC_LIST} ${HEADERS}) |
|
|
set_target_properties(${EXECUTEABLE} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/EthereumMacOSXBundleInfo.plist.in") |
|
|
set_target_properties(${EXECUTEABLE} PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/EthereumMacOSXBundleInfo.plist.in") |
|
|
SET_SOURCE_FILES_PROPERTIES(${EXECUTEABLE} PROPERTIES MACOSX_PACKAGE_LOCATION MacOS) |
|
|
SET_SOURCE_FILES_PROPERTIES(${EXECUTEABLE} PROPERTIES MACOSX_PACKAGE_LOCATION MacOS) |
|
|
SET_SOURCE_FILES_PROPERTIES(${MACOSX_BUNDLE_ICON_FILE}.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") |
|
|
SET_SOURCE_FILES_PROPERTIES(${MACOSX_BUNDLE_ICON_FILE}.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") |
|
|
|
|
|
|
|
|
else () |
|
|
else () |
|
|
set(EXECUTEABLE alethzero) |
|
|
set(EXECUTEABLE alethzero) |
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST}) |
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST} ${HEADERS}) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
qt5_use_modules(${EXECUTEABLE} Core)# Gui Widgets Network WebKit WebKitWidgets) |
|
|
qt5_use_modules(${EXECUTEABLE} Core)# Gui Widgets Network WebKit WebKitWidgets) |
|
|