CMakeLists.txt 2.2 KB

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