blob: 432e6e99dada6ccfa78a88f2189c41fc63d76c3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
cmake_minimum_required(VERSION 3.16)
project(empty_qmldir_test)
find_package(Qt6 ${CMAKE_Core_MODULE_MAJOR_VERSION}.${CMAKE_Core_MODULE_MINOR_VERSION}
REQUIRED COMPONENTS Qml Gui Test
)
set(CMAKE_AUTOMOC ON)
# Simplify finding the backing targets' DLLs on Windows
if(WIN32)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()
qt_add_executable(empty_qmldir_test main.cpp)
target_link_libraries(empty_qmldir_test PRIVATE Qt6::Test)
qt_add_qml_module(empty_qmldir_test
URI Third
VERSION 1.0
NO_RESOURCE_TARGET_PATH
SOURCES
enemy.cpp
enemy.h
QML_FILES
flee.qml
)
# Ensure linting runs when building the default "all" target
set_target_properties(all_qmllint PROPERTIES EXCLUDE_FROM_ALL FALSE)
|