2019-09-03 11:25:05 +00:00
|
|
|
# Generated from chapter6-plugins.pro.
|
|
|
|
|
2021-08-16 16:14:47 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2019-09-03 11:25:05 +00:00
|
|
|
project(chapter6-plugins LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
2020-05-28 14:37:02 +00:00
|
|
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
|
|
|
set(INSTALL_EXAMPLESDIR "examples")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/qml/tutorials/extending-qml/chapter6-plugins")
|
2019-09-03 11:25:05 +00:00
|
|
|
|
|
|
|
find_package(Qt6 COMPONENTS Qml)
|
|
|
|
find_package(Qt6 COMPONENTS Quick)
|
|
|
|
|
2020-10-16 14:20:49 +00:00
|
|
|
qt_add_executable(chapter6-plugins
|
2019-09-03 11:25:05 +00:00
|
|
|
main.cpp
|
|
|
|
)
|
2020-10-26 16:09:47 +00:00
|
|
|
set_target_properties(chapter6-plugins PROPERTIES
|
|
|
|
WIN32_EXECUTABLE TRUE
|
|
|
|
MACOSX_BUNDLE TRUE
|
|
|
|
)
|
2021-08-25 14:20:34 +00:00
|
|
|
target_link_libraries(chapter6-plugins PRIVATE
|
2019-09-03 11:25:05 +00:00
|
|
|
Qt::Qml
|
|
|
|
Qt::Quick
|
|
|
|
)
|
|
|
|
|
2021-08-23 06:29:18 +00:00
|
|
|
qt_add_qml_module(chapter6-plugins
|
|
|
|
URI ChartsApp
|
|
|
|
VERSION 1.0
|
|
|
|
QML_FILES app.qml
|
|
|
|
NO_RESOURCE_TARGET_PATH
|
2019-09-03 11:25:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS chapter6-plugins
|
|
|
|
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
)
|
|
|
|
|
2021-08-23 06:29:18 +00:00
|
|
|
add_subdirectory(Charts)
|