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

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
)
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})