CMakeLists.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. PROJECT(CTKCore)
  2. # CMake modules
  3. SET(CMAKE_MODULE_PATH ${CTKCore_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})
  4. # CMake Macros
  5. INCLUDE(CMake/ctkMacroBFDCheck.cmake)
  6. #
  7. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  8. #
  9. SET(KIT_export_directive "CTK_CORE_EXPORT")
  10. # Source files
  11. SET(KIT_SRCS
  12. ctkAbstractFactory.h
  13. ctkAbstractFactory.tpp
  14. ctkAbstractFileBasedFactory.h
  15. ctkAbstractFileBasedFactory.tpp
  16. ctkAbstractObjectFactory.h
  17. ctkAbstractObjectFactory.tpp
  18. ctkAbstractPluginFactory.h
  19. ctkAbstractPluginFactory.tpp
  20. ctkAbstractQObjectFactory.h
  21. ctkAbstractQObjectFactory.tpp
  22. ctkAbstractLibraryFactory.h
  23. ctkAbstractLibraryFactory.tpp
  24. ctkCommandLineParser.cpp
  25. ctkCommandLineParser.h
  26. ctkDependencyGraph.cpp
  27. ctkDependencyGraph.h
  28. ctkLogger.cpp
  29. ctkLogger.h
  30. ctkHistogram.cpp
  31. ctkHistogram.h
  32. ctkModelTester.cpp
  33. ctkModelTester.h
  34. ctkPimpl.h
  35. ctkSingleton.h
  36. ctkTransferFunction.cpp
  37. ctkTransferFunction.h
  38. ctkTransferFunctionRepresentation.cpp
  39. ctkTransferFunctionRepresentation.h
  40. ctkUtils.cpp
  41. ctkUtils.h
  42. ctkWorkflow.h
  43. ctkWorkflow.cpp
  44. ctkWorkflowStep.h
  45. ctkWorkflowStep.cpp
  46. ctkWorkflowStep_p.h
  47. ctkWorkflowTransitions.h
  48. )
  49. IF(CTK_HAVE_BFD)
  50. LIST(APPEND KIT_SRCS
  51. ctkBinaryFileDescriptor.cpp
  52. ctkBinaryFileDescriptor.h
  53. )
  54. ENDIF()
  55. # Headers that should run through moc
  56. SET(KIT_MOC_SRCS
  57. ctkLogger.h
  58. ctkHistogram.h
  59. ctkModelTester.h
  60. ctkTransferFunction.h
  61. ctkTransferFunctionRepresentation.h
  62. ctkWorkflow.h
  63. ctkWorkflowStep_p.h
  64. ctkWorkflowTransitions.h
  65. )
  66. # UI files
  67. SET(KIT_UI_FORMS
  68. )
  69. # Resources
  70. SET(KIT_resources
  71. )
  72. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  73. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  74. SET(KIT_target_libraries)
  75. ctkMacroGetTargetLibraries(KIT_target_libraries)
  76. ctkMacroBuildLib(
  77. NAME ${PROJECT_NAME}
  78. EXPORT_DIRECTIVE ${KIT_export_directive}
  79. SRCS ${KIT_SRCS}
  80. MOC_SRCS ${KIT_MOC_SRCS}
  81. UI_FORMS ${KIT_UI_FORMS}
  82. TARGET_LIBRARIES ${KIT_target_libraries}
  83. RESOURCES ${KIT_resources}
  84. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  85. )
  86. # Testing
  87. IF(BUILD_TESTING)
  88. ADD_SUBDIRECTORY(Testing)
  89. ENDIF(BUILD_TESTING)