aboutsummaryrefslogtreecommitdiffstats
path: root/demo/CMakeLists.txt
blob: aa8fd49939e7e57a3105f0e6b494e8904e31c77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
qt_add_executable(QtXpl2Demo main.cpp)

qt_add_qml_module(
  QtXpl2Demo
  URI
  QtXpl2Demo
  VERSION
  1.0
  QML_FILES
  Main.qml
  CommandsPage.qml
  StatusPage.qml
  DebugConsole.qml
  # IMPORT_PATH sets QT_QML_IMPORT_PATH on the target, which qmlls reads to
  # resolve imports like "import Xpl2" in .qmlls.ini.
  IMPORT_PATH
  "${PROJECT_BINARY_DIR}/qml")

set_target_properties(QtXpl2Demo PROPERTIES RUNTIME_OUTPUT_DIRECTORY
                                            "${PROJECT_BINARY_DIR}/bin")

target_link_libraries(QtXpl2Demo PRIVATE Qt6::Quick QtXpl2plugin)
target_include_directories(QtXpl2Demo PRIVATE "${PROJECT_SOURCE_DIR}/src")