CMakeLists.txt 1.7 KB

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