cmake: drop support for vtk<=5
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/107/head
parent
6673aefd70
commit
55068629b0
|
@ -7,7 +7,7 @@ ELSE()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
PROJECT(openEMS CXX C)
|
PROJECT(openEMS CXX C)
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
|
|
||||||
# default
|
# default
|
||||||
set(LIB_VERSION_MAJOR 0)
|
set(LIB_VERSION_MAJOR 0)
|
||||||
|
@ -61,7 +61,6 @@ if(UNIX AND ENABLE_RPATH)
|
||||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if (WITH_MPI)
|
if (WITH_MPI)
|
||||||
ADD_DEFINITIONS(-DMPI_SUPPORT)
|
ADD_DEFINITIONS(-DMPI_SUPPORT)
|
||||||
# Require MPI for this project:
|
# Require MPI for this project:
|
||||||
|
@ -138,14 +137,7 @@ INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIRS})
|
||||||
find_package(VTK COMPONENTS vtkIOXML vtkIOGeometry vtkIOLegacy vtkIOPLY NO_MODULE REQUIRED)
|
find_package(VTK COMPONENTS vtkIOXML vtkIOGeometry vtkIOLegacy vtkIOPLY NO_MODULE REQUIRED)
|
||||||
|
|
||||||
message(STATUS "Found package VTK. Using version " ${VTK_VERSION})
|
message(STATUS "Found package VTK. Using version " ${VTK_VERSION})
|
||||||
if("${VTK_MAJOR_VERSION}" GREATER 5)
|
set( vtk_LIBS ${VTK_LIBRARIES} )
|
||||||
set( vtk_LIBS ${VTK_LIBRARIES} )
|
|
||||||
else()
|
|
||||||
set( vtk_LIBS
|
|
||||||
vtkCommon
|
|
||||||
vtkIO
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
message(STATUS "vtk libraries " ${vtk_LIBS})
|
message(STATUS "vtk libraries " ${vtk_LIBS})
|
||||||
|
|
||||||
include(${VTK_USE_FILE})
|
include(${VTK_USE_FILE})
|
||||||
|
|
Loading…
Reference in New Issue