-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·37 lines (27 loc) · 1.23 KB
/
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
32
33
34
35
36
37
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(GetMatrix) # name of the project
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR")
ENDIF(ITK_FOUND)
FIND_PACKAGE(VTK REQUIRED)
IF (VTK_FOUND)
SET(VTK_USE_QVTK TRUE)
SET(VTK_USE_GUISUPPORT TRUE)
INCLUDE(${VTK_USE_FILE})
ELSE(VTK_FOUND)
MESSAGE(FATAL_ERROR, "VTK not found. Please set VTK_DIR.")
ENDIF (VTK_FOUND)
FIND_PACKAGE(GenerateCLP REQUIRED)
IF(GenerateCLP_FOUND)
INCLUDE(${GenerateCLP_USE_FILE})
ELSE(GenerateCLP_FOUND)
MESSAGE(FATAL_ERROR "GenerateCLP not found. Please set GenerateCLP_DIR")
ENDIF(GenerateCLP_FOUND)
SET(sources GetMatrix.cxx) #define the variable "sources" that contains the names of files
GENERATECLP(sources GetMatrix.xml) # include the GCLP file to the project
ADD_EXECUTABLE(GetMatrix ${sources}) # add the files contained by "sources" to the project
TARGET_LINK_LIBRARIES(GetMatrix vtkIO ${ITK_LIBRARIES})
#vtkWidgets vtkRendering vtkGraphics vtkImaging vtkIO vtkFiltering vtkCommon vtkHybrid vtksys vtkViews vtkInfovis vtklibxml2 vtkDICOMParser vtkpng vtkzlib vtkjpeg vtkalglib vtkexpat vtkverdict vtkmetaio vtkNetCDF vtksqlite vtkexoIIc vtkftgl vtkfreetype