37 lines
1,011 B
CMake
37 lines
1,011 B
CMake
cmake_minimum_required(VERSION 2.8.11)
|
|
|
|
project(light_client)
|
|
|
|
# Find includes in corresponding build directories
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
# Instruct CMake to run moc automatically when needed.
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(Qt5Core)
|
|
find_package(Qt5Widgets)
|
|
find_package(Qt5Quick)
|
|
|
|
file(GLOB QML qml/*)
|
|
|
|
# Skip building QRC in debug mode, since we access the QML files directly on disk in debug mode
|
|
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
qt5_add_resources(QML_QRC qml/qml.qrc)
|
|
endif()
|
|
|
|
add_executable(light_client
|
|
Wallet.cpp
|
|
ChainDataModel.cpp
|
|
Operations.cpp
|
|
GrapheneApplication.cpp
|
|
GrapheneObject.cpp
|
|
Asset.cpp
|
|
Account.cpp
|
|
Balance.cpp
|
|
Transaction.cpp
|
|
main.cpp ${QML_QRC} ${QML})
|
|
|
|
if (CMAKE_VERSION VERSION_LESS 3.0)
|
|
add_dependencies(light_client gen_qrc)
|
|
endif()
|
|
|
|
target_link_libraries(light_client PRIVATE Qt5::Core Qt5::Widgets Qt5::Quick graphene_chain graphene_utilities fc graphene_app )
|