CMakeLists.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. PROJECT(CTKVisualizationVTKCore)
  2. #
  3. # 3rd party dependencies
  4. #
  5. FIND_PACKAGE(VTK)
  6. IF(NOT VTK_FOUND)
  7. MESSAGE(FATAL_ERROR "error: VTK package is required to build ${PROJECT_NAME}")
  8. ENDIF()
  9. INCLUDE(${VTK_USE_FILE})
  10. #
  11. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  12. #
  13. SET(KIT_export_directive "CTK_VISUALIZATION_VTK_CORE_EXPORT")
  14. # Additional directories to include
  15. SET(KIT_include_directories
  16. )
  17. # Source files
  18. SET(KIT_SRCS
  19. ctkVTKColorTransferFunction.cpp
  20. ctkVTKColorTransferFunction.h
  21. ctkVTKCompositeFunction.cpp
  22. ctkVTKCompositeFunction.h
  23. ctkVTKConnection.cpp
  24. ctkVTKConnection.h
  25. ctkVTKHistogram.cpp
  26. ctkVTKHistogram.h
  27. ctkVTKLookupTable.cpp
  28. ctkVTKLookupTable.h
  29. ctkVTKObject.h
  30. ctkVTKObjectEventsObserver.cpp
  31. ctkVTKObjectEventsObserver.h
  32. ctkVTKPiecewiseFunction.cpp
  33. ctkVTKPiecewiseFunction.h
  34. vtkLightBoxRendererManager.cpp
  35. vtkLightBoxRendererManager.h
  36. )
  37. # Headers that should run through moc
  38. SET(KIT_MOC_SRCS
  39. ctkVTKColorTransferFunction.h
  40. ctkVTKConnection.h
  41. ctkVTKCompositeFunction.h
  42. ctkVTKLookupTable.h
  43. ctkVTKHistogram.h
  44. ctkVTKObjectEventsObserver.h
  45. ctkVTKPiecewiseFunction.h
  46. )
  47. # UI files
  48. SET(KIT_UI_FORMS
  49. )
  50. # Resources
  51. SET(KIT_resources
  52. )
  53. # Set VTK_LIBRARIES variable
  54. SET(VTK_LIBRARIES
  55. vtkCommon
  56. vtkFiltering
  57. vtkRendering
  58. vtkHybrid
  59. )
  60. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  61. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  62. ctkMacroGetTargetLibraries(KIT_target_libraries)
  63. ctkMacroBuildLib(
  64. NAME ${PROJECT_NAME}
  65. EXPORT_DIRECTIVE ${KIT_export_directive}
  66. INCLUDE_DIRECTORIES ${KIT_include_directories}
  67. SRCS ${KIT_SRCS}
  68. MOC_SRCS ${KIT_MOC_SRCS}
  69. UI_FORMS ${KIT_UI_FORMS}
  70. TARGET_LIBRARIES ${KIT_target_libraries}
  71. RESOURCES ${KIT_resources}
  72. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  73. )
  74. # Plugins
  75. #ADD_SUBDIRECTORY(Plugins)
  76. # Testing
  77. IF(BUILD_TESTING)
  78. ADD_SUBDIRECTORY(Testing)
  79. ENDIF(BUILD_TESTING)