Commit dd39da55 authored by Brad King's avatar Brad King
Browse files

Tests: Add case for warning when AUTOMOC/UIC/RCC gets disabled

parent 5ae69f59
cmake_minimum_required(VERSION 3.13)
project(${RunCMake_TEST} NONE)
^CMake Warning \(dev\) in CMakeLists.txt:
AUTOGEN: No valid Qt version found for target main. AUTOMOC, AUTOUIC,
AUTORCC disabled. Consider adding:
find_package\(Qt5 COMPONENTS Widgets\)
to your CMakeLists.txt file.
This warning is for project developers. Use -Wno-dev to suppress it.
add_executable(main empty.cpp)
set_property(TARGET main PROPERTY AUTOMOC 1)
set_property(TARGET main PROPERTY AUTORCC 1)
set_property(TARGET main PROPERTY AUTOUIC 1)
...@@ -142,6 +142,7 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE) ...@@ -142,6 +142,7 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE)
endif() endif()
add_RunCMake_test(AndroidTestUtilities) add_RunCMake_test(AndroidTestUtilities)
add_RunCMake_test(BuildDepends) add_RunCMake_test(BuildDepends)
if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Unix Makefiles|Ninja") if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Unix Makefiles|Ninja")
add_RunCMake_test(Byproducts) add_RunCMake_test(Byproducts)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment