mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
2ef640819f
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.
17 lines
360 B
CMake
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})
|