cmake/Tests/QtAutogen/DefinesTest/CMakeLists.txt

14 lines
377 B
CMake
Raw Normal View History

2018-04-23 21:13:27 +02:00
cmake_minimum_required(VERSION 3.10)
project(DefinesTest)
# Qt4 only definitions test
2018-10-28 12:09:07 +01:00
if(NOT QT_TEST_VERSION EQUAL 4)
2018-04-23 21:13:27 +02:00
message(ERROR "Invalid Qt test version. This test is for Qt4 only.")
endif()
find_package(Qt4 REQUIRED)
add_executable(DefinesTest defines_test.cpp)
set_target_properties(DefinesTest PROPERTIES AUTOMOC TRUE)
target_link_libraries(DefinesTest Qt4::QtGui)