CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. )
  19. # Headers that should run through moc
  20. SET(KIT_MOC_SRCS
  21. )
  22. # UI files
  23. SET(KIT_UI_FORMS
  24. )
  25. # Resources
  26. SET(KIT_resources
  27. )
  28. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  29. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  30. ctkMacroGetTargetLibraries(KIT_target_libraries)
  31. ctkMacroBuildLib(
  32. NAME ${PROJECT_NAME}
  33. EXPORT_DIRECTIVE ${KIT_export_directive}
  34. INCLUDE_DIRECTORIES ${KIT_include_directories}
  35. SRCS ${KIT_SRCS}
  36. MOC_SRCS ${KIT_MOC_SRCS}
  37. UI_FORMS ${KIT_UI_FORMS}
  38. TARGET_LIBRARIES ${KIT_target_libraries}
  39. RESOURCES ${KIT_resources}
  40. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  41. )
  42. # Testing
  43. IF(BUILD_TESTING)
  44. ADD_SUBDIRECTORY(Testing)
  45. ENDIF(BUILD_TESTING)