summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/UicNoGui/CMakeLists.txt
blob: b938a17c64c8ad4087a7e6880df36f6b62c3d851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required(VERSION 3.16)
project(UicNoGui)
include("../AutogenCoreTest.cmake")

# This tests creates a target that has AUTOUIC enabled but does not
# link against QtXWidgets.

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

add_subdirectory(MocOnly)
add_subdirectory(NoQt)

add_executable(uicNoGui main.cpp)
target_link_libraries(uicNoGui mocOnly noQt)