light_client: Don't use AUTORCC as it requires CMake 3+
This commit is contained in:
parent
8441df260c
commit
af638cdd6d
1 changed files with 5 additions and 3 deletions
|
|
@ -6,14 +6,16 @@ project(light_client)
|
|||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
# Instruct CMake to run moc automatically when needed.
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
# Instruct CMake to run rcc automatically when needed.
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
find_package(Qt5Core)
|
||||
find_package(Qt5Widgets)
|
||||
find_package(Qt5Quick)
|
||||
|
||||
file(GLOB QML qml/*)
|
||||
add_executable(light_client ClientDataModel.cpp ClientDataModel.hpp main.cpp ${QML})
|
||||
|
||||
qt5_add_resources(QML_QRC qml/qml.qrc)
|
||||
|
||||
add_executable(light_client ClientDataModel.cpp ClientDataModel.hpp main.cpp ${QML_QRC})
|
||||
add_dependencies(light_client gen_qrc)
|
||||
|
||||
target_link_libraries(light_client PRIVATE Qt5::Core Qt5::Widgets Qt5::Quick graphene_chain graphene_utilities fc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue