CMakeLists.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. PROJECT(CTKCore)
  2. #
  3. # 3rd party dependencies
  4. #
  5. INCLUDE(${Log4Qt_USE_FILE})
  6. # CMake modules
  7. SET(CMAKE_MODULE_PATH ${CTKCore_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})
  8. # CMake Macros
  9. INCLUDE(CMake/ctkMacroBFDCheck.cmake) # HAVE_BFD will be set to True if it applies
  10. #
  11. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  12. #
  13. SET(KIT_export_directive "CTK_CORE_EXPORT")
  14. # Source files
  15. SET(KIT_SRCS
  16. ctkAbstractFactory.h
  17. ctkAbstractFactory.tpp
  18. ctkAbstractFileBasedFactory.h
  19. ctkAbstractFileBasedFactory.tpp
  20. ctkAbstractObjectFactory.h
  21. ctkAbstractObjectFactory.tpp
  22. ctkAbstractPluginFactory.h
  23. ctkAbstractPluginFactory.tpp
  24. ctkAbstractQObjectFactory.h
  25. ctkAbstractQObjectFactory.tpp
  26. ctkAbstractLibraryFactory.h
  27. ctkAbstractLibraryFactory.tpp
  28. ctkCallback.cpp
  29. ctkCallback.h
  30. ctkCheckableModelHelper.cpp
  31. ctkCheckableModelHelper.h
  32. ctkCommandLineParser.cpp
  33. ctkCommandLineParser.h
  34. ctkDependencyGraph.cpp
  35. ctkDependencyGraph.h
  36. ctkErrorLogModel.cpp
  37. ctkErrorLogModel.h
  38. ctkErrorLogFDMessageHandler.cpp
  39. ctkErrorLogFDMessageHandler.h
  40. ctkErrorLogFDMessageHandler_p.h
  41. ctkErrorLogQtMessageHandler.cpp
  42. ctkErrorLogQtMessageHandler.h
  43. ctkErrorLogStreamMessageHandler.cpp
  44. ctkErrorLogStreamMessageHandler.h
  45. ctkLogger.cpp
  46. ctkLogger.h
  47. ctkHistogram.cpp
  48. ctkHistogram.h
  49. ctkModelTester.cpp
  50. ctkModelTester.h
  51. ctkPimpl.h
  52. ctkScopedCurrentDir.cpp
  53. ctkScopedCurrentDir.h
  54. ctkSingleton.h
  55. ctkTransferFunction.cpp
  56. ctkTransferFunction.h
  57. ctkTransferFunctionRepresentation.cpp
  58. ctkTransferFunctionRepresentation.h
  59. ctkUtils.cpp
  60. ctkUtils.h
  61. ctkWorkflow.h
  62. ctkWorkflow.cpp
  63. ctkWorkflow_p.h
  64. ctkWorkflowStep.h
  65. ctkWorkflowStep.cpp
  66. ctkWorkflowStep_p.h
  67. ctkWorkflowTransitions.h
  68. )
  69. IF(HAVE_BFD)
  70. LIST(APPEND KIT_SRCS
  71. ctkBinaryFileDescriptor.cpp
  72. ctkBinaryFileDescriptor.h
  73. )
  74. ENDIF()
  75. # Headers that should run through moc
  76. SET(KIT_MOC_SRCS
  77. ctkCallback.h
  78. ctkCheckableModelHelper.h
  79. ctkCommandLineParser.h
  80. ctkErrorLogFDMessageHandler_p.h
  81. ctkErrorLogModel.h
  82. ctkLogger.h
  83. ctkHistogram.h
  84. ctkModelTester.h
  85. ctkTransferFunction.h
  86. ctkTransferFunctionRepresentation.h
  87. ctkWorkflow.h
  88. ctkWorkflow_p.h
  89. ctkWorkflowStep_p.h
  90. ctkWorkflowTransitions.h
  91. )
  92. # UI files
  93. SET(KIT_UI_FORMS
  94. )
  95. # Resources
  96. SET(KIT_resources
  97. )
  98. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  99. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  100. SET(KIT_target_libraries)
  101. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  102. ctkMacroBuildLib(
  103. NAME ${PROJECT_NAME}
  104. EXPORT_DIRECTIVE ${KIT_export_directive}
  105. SRCS ${KIT_SRCS}
  106. MOC_SRCS ${KIT_MOC_SRCS}
  107. UI_FORMS ${KIT_UI_FORMS}
  108. TARGET_LIBRARIES ${KIT_target_libraries}
  109. RESOURCES ${KIT_resources}
  110. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  111. )
  112. IF(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  113. ctkMacroBuildLibWrapper(
  114. TARGET ${PROJECT_NAME}
  115. SRCS ${KIT_SRCS}
  116. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  117. )
  118. ENDIF()
  119. # Testing
  120. IF(BUILD_TESTING)
  121. ADD_SUBDIRECTORY(Testing)
  122. ENDIF(BUILD_TESTING)