summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/RerunUicOnFileChange/UicOnFileChange/CMakeLists.txt.in
blob: c77075ca1e3848f37ad1d9764368b2e4d54da30d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.10)

project(UicOnFileChange)
include("@CMAKE_CURRENT_LIST_DIR@/../AutogenGuiTest.cmake")

# Enable CMAKE_AUTOUIC for all targets
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)

add_executable(UicOnFileChange main.cpp mainwindow.ui mainwindow.h
    subdir/subdircheck.cpp subdir/mainwindowsubdir.ui
)
target_include_directories(UicOnFileChange PRIVATE
    "${CMAKE_CURRENT_SOURCE_DIR}"
    "${CMAKE_CURRENT_BINARY_DIR}/UicOnFileChange_autogen/include"
)
target_link_libraries(UicOnFileChange ${QT_QTCORE_TARGET} ${QT_LIBRARIES})