|
@@ -64,8 +64,8 @@ ExternalProject_Add(YAML-CPP
|
64
|
64
|
add_compile_options(-DHAVE_YAMLCPP)
|
65
|
65
|
|
66
|
66
|
# tinyxml2, this library is used for XML IO
|
67
|
|
-option(TINYXML_SUPPORT "MATIO library support for MATLAB .mat files" OFF)
|
68
|
|
-if ( TINYXML_SUPPORT )
|
|
67
|
+option( LEMMA_TINYXML_SUPPORT "MATIO library support for MATLAB .mat files" OFF)
|
|
68
|
+if ( LEMMA_TINYXML_SUPPORT )
|
69
|
69
|
ExternalProject_Add(TINYXML2
|
70
|
70
|
GIT_REPOSITORY "https://github.com/leethomason/tinyxml2.git"
|
71
|
71
|
GIT_TAG "master"
|
|
@@ -78,8 +78,8 @@ if ( TINYXML_SUPPORT )
|
78
|
78
|
add_compile_options(-DTINYXMLSUPPORT)
|
79
|
79
|
endif()
|
80
|
80
|
|
81
|
|
-option(MATIO_SUPPORT "MATIO library support for MATLAB .mat files" OFF)
|
82
|
|
-if ( MATIO_SUPPORT )
|
|
81
|
+option( LEMMA_MATIO_SUPPORT "MATIO library support for MATLAB .mat files" OFF)
|
|
82
|
+if ( LEMMA_MATIO_SUPPORT )
|
83
|
83
|
add_compile_options(-DHAVE_MATIO)
|
84
|
84
|
# matio, this library is used for MATLAB file IO
|
85
|
85
|
ExternalProject_ADD(MATIO
|
|
@@ -96,10 +96,14 @@ if ( MATIO_SUPPORT )
|
96
|
96
|
endif()
|
97
|
97
|
|
98
|
98
|
# We don't build VTK, it is too heavy.
|
99
|
|
-option (VTK_SUPPORT "VTK library for visualisation and grids" OFF)
|
100
|
|
-if (VTK_SUPPORT)
|
101
|
|
- find_package(VTK 6 REQUIRED NO_MODULE)
|
102
|
|
- include(${VTK_USE_FILE})
|
|
99
|
+option (LEMMA_VTK_SUPPORT "VTK library for visualisation and grids" OFF)
|
|
100
|
+if ( LEMMA_VTK_SUPPORT )
|
|
101
|
+ #find_package(VTK 6 REQUIRED NO_MODULE)
|
|
102
|
+ find_package(VTK 6.0 COMPONENTS vtkCommonCore vtkRenderingCore vtkFiltersCore vtkFiltersSources
|
|
103
|
+ vtkCommonDataModel vtkFiltersHyperTree vtkIOXML vtkIOImage vtkIOLegacy vtkInteractionStyle
|
|
104
|
+ vtkRenderingAnnotation vtkFiltersHybrid vtkFiltersModeling vtkRenderingVolumeOpenGL NO_MODULE)
|
|
105
|
+ set(volumeRenderer volumerenderer.cxx)
|
|
106
|
+ include(${VTK_USE_FILE})
|
103
|
107
|
add_compile_options(-DLEMMAUSEVTK)
|
104
|
108
|
# Compile Matplot_vtk if VTK is present
|
105
|
109
|
add_subdirectory(Matplot_vtk)
|