|
@ -17,7 +17,7 @@ if (APPLE) |
|
|
|
|
|
|
|
|
set(CMAKE_PREFIX_PATH /usr/local/opt/qt5) |
|
|
set(CMAKE_PREFIX_PATH /usr/local/opt/qt5) |
|
|
include_directories(/usr/local/opt/qt5/include /usr/local/include) |
|
|
include_directories(/usr/local/opt/qt5/include /usr/local/include) |
|
|
elseif (${TARGET_PLATFORM} STREQUAL "w64") |
|
|
elseif ("${TARGET_PLATFORM}" STREQUAL "w64") |
|
|
set(SRC_LIST ${SRC_LIST} ../windows/qt_plugin_import.cpp) |
|
|
set(SRC_LIST ${SRC_LIST} ../windows/qt_plugin_import.cpp) |
|
|
include_directories(/usr/x86_64-w64-mingw32/include /usr/x86_64-w64-mingw32/include/QtCore /usr/x86_64-w64-mingw32/include/QtGui /usr/x86_64-w64-mingw32/include/QtQuick /usr/x86_64-w64-mingw32/include/QtQml /usr/x86_64-w64-mingw32/include/QtNetwork /usr/x86_64-w64-mingw32/include/QtWidgets /usr/x86_64-w64-mingw32/include/QtWebKit /usr/x86_64-w64-mingw32/include/QtWebKitWidgets) |
|
|
include_directories(/usr/x86_64-w64-mingw32/include /usr/x86_64-w64-mingw32/include/QtCore /usr/x86_64-w64-mingw32/include/QtGui /usr/x86_64-w64-mingw32/include/QtQuick /usr/x86_64-w64-mingw32/include/QtQml /usr/x86_64-w64-mingw32/include/QtNetwork /usr/x86_64-w64-mingw32/include/QtWidgets /usr/x86_64-w64-mingw32/include/QtWebKit /usr/x86_64-w64-mingw32/include/QtWebKitWidgets) |
|
|
elseif (UNIX) |
|
|
elseif (UNIX) |
|
@ -25,14 +25,14 @@ elseif (UNIX) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#find_package(Qt5Core REQUIRED) |
|
|
find_package(Qt5Core REQUIRED) |
|
|
#find_package(Qt5Gui REQUIRED) |
|
|
find_package(Qt5Gui REQUIRED) |
|
|
#find_package(Qt5Quick REQUIRED) |
|
|
find_package(Qt5Quick REQUIRED) |
|
|
#find_package(Qt5Qml REQUIRED) |
|
|
find_package(Qt5Qml REQUIRED) |
|
|
#find_package(Qt5Network REQUIRED) |
|
|
find_package(Qt5Network REQUIRED) |
|
|
find_package(Qt5Widgets REQUIRED) |
|
|
find_package(Qt5Widgets REQUIRED) |
|
|
#find_package(Qt5WebKit REQUIRED) |
|
|
find_package(Qt5WebKit REQUIRED) |
|
|
#find_package(Qt5WebKitWidgets REQUIRED) |
|
|
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() |
|
@ -58,7 +58,7 @@ else () |
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST}) |
|
|
add_executable(${EXECUTEABLE} Main.ui ${SRC_LIST}) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
#qt5_use_modules(${EXECUTEABLE} Core)# Gui Widgets Network WebKit WebKitWidgets) |
|
|
qt5_use_modules(${EXECUTEABLE} Core)# Gui Widgets Network WebKit WebKitWidgets) |
|
|
target_link_libraries(${EXECUTEABLE} qethereum ethereum evm ethcore secp256k1 gmp ${CRYPTOPP_LS} serpent lll evmface ethential) |
|
|
target_link_libraries(${EXECUTEABLE} qethereum ethereum evm ethcore secp256k1 gmp ${CRYPTOPP_LS} serpent lll evmface ethential) |
|
|
|
|
|
|
|
|
if (APPLE) |
|
|
if (APPLE) |
|
@ -70,7 +70,7 @@ if (APPLE) |
|
|
# will not be set but defaults to release. |
|
|
# will not be set but defaults to release. |
|
|
set(generator_lowercase "${CMAKE_GENERATOR}") |
|
|
set(generator_lowercase "${CMAKE_GENERATOR}") |
|
|
string(TOLOWER "${CMAKE_GENERATOR}" generator_lowercase) |
|
|
string(TOLOWER "${CMAKE_GENERATOR}" generator_lowercase) |
|
|
if (generator_lowercase STREQUAL "xcode") |
|
|
if ("${generator_lowercase}" STREQUAL "xcode") |
|
|
# TODO: Not sure how to resolve this. Possibly \${TARGET_BUILD_DIR} |
|
|
# TODO: Not sure how to resolve this. Possibly \${TARGET_BUILD_DIR} |
|
|
set(binary_build_dir "${CMAKE_CURRENT_BINARY_DIR}/Debug") |
|
|
set(binary_build_dir "${CMAKE_CURRENT_BINARY_DIR}/Debug") |
|
|
else () |
|
|
else () |
|
@ -92,7 +92,7 @@ if (APPLE) |
|
|
DEPENDS ${PROJECT_NAME} |
|
|
DEPENDS ${PROJECT_NAME} |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
elseif (${TARGET_PLATFORM} STREQUAL "w64") |
|
|
elseif ("${TARGET_PLATFORM}" STREQUAL "w64") |
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-keep-inline-dllexport -static-libgcc -static-libstdc++ -static") |
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-keep-inline-dllexport -static-libgcc -static-libstdc++ -static") |
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-s -Wl,-subsystem,windows -mthreads -L/usr/x86_64-w64-mingw32/plugins/platforms") |
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-s -Wl,-subsystem,windows -mthreads -L/usr/x86_64-w64-mingw32/plugins/platforms") |
|
|
target_link_libraries(${EXECUTEABLE} gcc) |
|
|
target_link_libraries(${EXECUTEABLE} gcc) |
|
|