CMakeLists.txt 380 B

12345678910111213
  1. cmake_minimum_required(VERSION 3.10)
  2. project(DefinesTest)
  3. # Qt4 only definitions test
  4. if(NOT QT_TEST_VERSION STREQUAL 4)
  5. message(ERROR "Invalid Qt test version. This test is for Qt4 only.")
  6. endif()
  7. find_package(Qt4 REQUIRED)
  8. add_executable(DefinesTest defines_test.cpp)
  9. set_target_properties(DefinesTest PROPERTIES AUTOMOC TRUE)
  10. target_link_libraries(DefinesTest Qt4::QtGui)