forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
31 lines (26 loc) · 975 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include(vtkQt)
set(LibSrcs
vtkQImageToImageSource.cxx
vtkQtInitialization.cxx
vtkQtLabelRenderStrategy.cxx
vtkQtStringToImage.cxx
vtkQtTreeRingLabelMapper.cxx
)
if(VTK_QT_VERSION VERSION_GREATER "4")
find_package(Qt5 COMPONENTS Widgets REQUIRED QUIET)
include_directories(${Qt5Widgets_INCLUDE_DIRS})
add_definitions(${Qt5Widgets_DEFINITIONS})
set(QT_LIBRARIES ${Qt5Widgets_LIBRARIES})
# When this module is loaded by an app, load Qt too.
vtk_module_export_code_find_package(Qt5 COMPONENTS Widgets)
else()
# import Qt4 build settings
find_package(Qt4 REQUIRED QtCore QtGui QUIET)
include_directories(${QT_INCLUDES})
add_definitions(${QT_DEFINITIONS})
set(QT_LIBRARIES Qt4::QtCore Qt4::QtGui)
# When this module is loaded by an app, load Qt too.
vtk_module_export_code_find_package(Qt4 COMPONENTS QtCore QtGui)
endif()
vtk_module_library(${vtk-module} ${LibSrcs})
vtk_module_link_libraries(${vtk-module} LINK_PRIVATE ${QT_LIBRARIES})