Files
CMake/Tests/QtAutogen/LowMinimumVersion/CMakeLists.txt
T
Sebastian Holtermann 2ef640819f Autogen: Tests: Differentiate between Qt core and Qt gui tests
Some AUTOGEN tests require the Qt core libraries only and
some require the Qt gui libraries to function.
This replaces the AutogenTest.cmake script with two specific
AutogenCoreTest.cmake and AutogenGuiTest.cmake scripts that
are included on demand.
2018-11-28 12:51:19 +01:00

17 lines
360 B
CMake

# Use a low minimum version
cmake_minimum_required(VERSION 3.0)
project(LowMinimumVersion)
include("../AutogenGuiTest.cmake")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
add_executable(lowMinimumVersion
main.cpp
item.hpp
item.cpp
view.ui
someText.txt
example.qrc)
target_link_libraries(lowMinimumVersion ${QT_QTCORE_TARGET})