|
|
@ -25,6 +25,7 @@ find_package(Qt5WebKitWidgets REQUIRED) |
|
|
|
qt5_wrap_ui(ui_Main.h Main.ui) |
|
|
|
|
|
|
|
# Set name of binary and add_executable() |
|
|
|
file(GLOB HEADERS "*.h") |
|
|
|
if (APPLE) |
|
|
|
set(EXECUTEABLE AlethZero) |
|
|
|
set(BIN_INSTALL_DIR ".") |
|
|
@ -41,14 +42,14 @@ if (APPLE) |
|
|
|
set(MACOSX_BUNDLE_ICON_FILE alethzero) |
|
|
|
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_SOURCE_FILES_PROPERTIES(${EXECUTEABLE} PROPERTIES MACOSX_PACKAGE_LOCATION MacOS) |
|
|
|
SET_SOURCE_FILES_PROPERTIES(${MACOSX_BUNDLE_ICON_FILE}.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") |
|
|
|
|
|
|
|
else () |
|
|
|
set(EXECUTEABLE alethzero) |
|
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST}) |
|
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST} ${HEADERS}) |
|
|
|
endif () |
|
|
|
|
|
|
|
qt5_use_modules(${EXECUTEABLE} Core)# Gui Widgets Network WebKit WebKitWidgets) |
|
|
|