CMakeLists.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. project(ctkQtTesting)
  2. #
  3. # 3rd party dependencies
  4. #
  5. find_package(QtTesting REQUIRED)
  6. include_directories(
  7. ${QtTesting_INCLUDE_DIRS}
  8. ${CTKQtTesting_INCLUDE_DIRS}
  9. ${CTK_BASE_INCLUDE_DIRS}
  10. )
  11. #
  12. # See CTK/CMake/ctkMacroBuildApp.cmake for details
  13. #
  14. set(KIT_SRCS
  15. ctkQtTestingMain.cpp
  16. ctkQtTestingMainWindow.cpp
  17. ctkQtTestingMainWindow.h
  18. )
  19. # Headers that should run through moc
  20. set(KIT_MOC_SRCS
  21. ctkQtTestingMainWindow.h
  22. )
  23. # UI files
  24. set(KIT_UI_FORMS
  25. ctkQtTestingMainWindow.ui
  26. )
  27. # Resources
  28. set(KIT_resources
  29. )
  30. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  31. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  32. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  33. list(APPEND KIT_target_libraries CTKQtTesting)
  34. ctkMacroBuildApp(
  35. NAME ${PROJECT_NAME}
  36. SRCS ${KIT_SRCS}
  37. MOC_SRCS ${KIT_MOC_SRCS}
  38. UI_FORMS ${KIT_UI_FORMS}
  39. TARGET_LIBRARIES ${KIT_target_libraries}
  40. RESOURCES ${KIT_resources}
  41. )
  42. # Testing
  43. if(BUILD_TESTING)
  44. # add_subdirectory(Testing)
  45. endif()