|
|
@ -2,27 +2,6 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) |
|
|
|
aux_source_directory(. SRC_LIST) |
|
|
|
include_directories(..) |
|
|
|
|
|
|
|
|
|
|
|
if (APPLE) |
|
|
|
# Add homebrew path for qt5 |
|
|
|
set(CMAKE_PREFIX_PATH /usr/local/opt/qt5) |
|
|
|
include_directories(/usr/local/opt/qt5/include /usr/local/include) |
|
|
|
elseif ("${TARGET_PLATFORM}" STREQUAL "w64") |
|
|
|
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) |
|
|
|
elseif (UNIX) |
|
|
|
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ";$ENV{QTDIR}/lib/cmake") |
|
|
|
endif () |
|
|
|
|
|
|
|
find_package(Qt5Core REQUIRED) |
|
|
|
find_package(Qt5Gui REQUIRED) |
|
|
|
find_package(Qt5Quick REQUIRED) |
|
|
|
find_package(Qt5Qml REQUIRED) |
|
|
|
find_package(Qt5Network REQUIRED) |
|
|
|
find_package(Qt5Widgets REQUIRED) |
|
|
|
find_package(Qt5WebKit REQUIRED) |
|
|
|
find_package(Qt5WebKitWidgets REQUIRED) |
|
|
|
|
|
|
|
#qt5_wrap_ui(ui_Main.h Main.ui) |
|
|
|
|
|
|
|
qt5_add_resources(UI_RESOURCES qml.qrc) |
|
|
@ -55,8 +34,10 @@ else () |
|
|
|
add_executable(${EXECUTEABLE} ${SRC_LIST} ${HEADERS} ${UI_RESOURCES}) |
|
|
|
endif () |
|
|
|
|
|
|
|
qt5_use_modules(${EXECUTEABLE} Core)# Gui Widgets Network WebKit WebKitWidgets) |
|
|
|
target_link_libraries(${EXECUTEABLE} webthree qethereum ethereum evm ethcore devcrypto secp256k1 gmp ${CRYPTOPP_LS} serpent lll solidity evmcore devcore web3jsonrpc jsqrc) |
|
|
|
#qt5_use_modules(${EXECUTEABLE} Core Gui Widgets Network WebKit WebKitWidgets) |
|
|
|
target_link_libraries(${EXECUTEABLE} Qt5::Core) |
|
|
|
target_link_libraries(${EXECUTEABLE} Qt5::Gui) |
|
|
|
target_link_libraries(${EXECUTEABLE} webthree qethereum ethereum evm ethcore devcrypto secp256k1 ${CRYPTOPP_LS} serpent lll solidity evmcore devcore web3jsonrpc jsqrc) |
|
|
|
|
|
|
|
if (APPLE) |
|
|
|
# First have qt5 install plugins and frameworks |
|
|
@ -82,13 +63,6 @@ if (APPLE) |
|
|
|
file(REMOVE \${LINGER_RM}) |
|
|
|
endif () |
|
|
|
") |
|
|
|
elseif (UNIX) |
|
|
|
else () |
|
|
|
target_link_libraries(${EXECUTEABLE} boost_system) |
|
|
|
target_link_libraries(${EXECUTEABLE} boost_filesystem) |
|
|
|
find_package(Threads REQUIRED) |
|
|
|
target_link_libraries(${EXECUTEABLE} ${CMAKE_THREAD_LIBS_INIT}) |
|
|
|
else() |
|
|
|
install( TARGETS ${EXECUTEABLE} RUNTIME DESTINATION bin ) |
|
|
|
endif () |
|
|
|
|
|
|
|
qt5_use_modules(${EXECUTEABLE} Core Gui) |
|
|
|