2019-08-22 09:45:45 +00:00
|
|
|
# Generated from chapter5-listproperties.pro.
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(chapter5-listproperties LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
|
|
|
set(INSTALL_EXAMPLEDIR "examples")
|
|
|
|
|
|
|
|
find_package(Qt6 COMPONENTS Core)
|
|
|
|
find_package(Qt6 COMPONENTS Gui)
|
|
|
|
find_package(Qt6 COMPONENTS Qml)
|
|
|
|
find_package(Qt6 COMPONENTS Quick)
|
|
|
|
|
|
|
|
add_qt_gui_executable(chapter5-listproperties
|
|
|
|
main.cpp
|
|
|
|
piechart.cpp piechart.h
|
|
|
|
pieslice.cpp pieslice.h
|
|
|
|
)
|
|
|
|
target_link_libraries(chapter5-listproperties PUBLIC
|
|
|
|
Qt::Core
|
|
|
|
Qt::Gui
|
|
|
|
Qt::Qml
|
|
|
|
Qt::Quick
|
|
|
|
)
|
|
|
|
|
|
|
|
# Resources:
|
|
|
|
set(chapter5-listproperties_resource_files
|
|
|
|
"app.qml"
|
|
|
|
)
|
|
|
|
|
2019-09-19 10:11:21 +00:00
|
|
|
qt6_add_resources(chapter5-listproperties "chapter5-listproperties"
|
2019-08-22 09:45:45 +00:00
|
|
|
PREFIX
|
|
|
|
"/"
|
|
|
|
FILES
|
|
|
|
${chapter5-listproperties_resource_files}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS chapter5-listproperties
|
|
|
|
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
)
|