CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. PROJECT(CTKModuleDescription)
  2. #
  3. # 3rd party dependencies
  4. #
  5. #
  6. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  7. #
  8. SET(KIT_export_directive "CTK_MODULDESC_EXPORT")
  9. # Additional directories to include
  10. # Source files
  11. SET(KIT_SRCS
  12. ctkModuleDescription.h
  13. ctkModuleDescription.cpp
  14. ctkModuleParameter.h
  15. ctkModuleParameter.cpp
  16. ctkModuleParameterGroup.h
  17. ctkModuleParameterGroup.cpp
  18. ctkModuleDescriptionReader.cpp
  19. )
  20. # Headers that should run through moc
  21. SET(KIT_MOC_SRCS
  22. ctkModuleDescriptionReaderInterface.h
  23. ctkModuleDescriptionReader.h
  24. )
  25. # UI files
  26. SET(KIT_UI_FORMS
  27. )
  28. # Resources
  29. SET(KIT_resources
  30. )
  31. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  32. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  33. ctkMacroGetTargetLibraries(KIT_target_libraries)
  34. ctkMacroBuildLib(
  35. NAME ${PROJECT_NAME}
  36. EXPORT_DIRECTIVE ${KIT_export_directive}
  37. INCLUDE_DIRECTORIES ${KIT_include_directories}
  38. SRCS ${KIT_SRCS}
  39. MOC_SRCS ${KIT_MOC_SRCS}
  40. UI_FORMS ${KIT_UI_FORMS}
  41. TARGET_LIBRARIES ${KIT_target_libraries}
  42. RESOURCES ${KIT_resources}
  43. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  44. )
  45. # Testing
  46. IF(BUILD_TESTING)
  47. ADD_SUBDIRECTORY(Testing)
  48. ENDIF(BUILD_TESTING)