Commit 2368a059 authored by saubatn's avatar saubatn

FIXED CEP architecture, step #1.3: fixed VTK version look (required is 5.8).

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@739 ec899d31-69d1-42ba-9299-647d76f65fb3
parent a900e368
......@@ -23,10 +23,14 @@ include(${QT_USE_FILE})
set (QT_USE_QT3SUPPORT OFF)
# Find VTK
find_package(VTK 5.8 REQUIRED)
find_package(VTK REQUIRED)
if(NOT VTK_FOUND)
message(SEND_ERROR "Failed to find Vtk 5.8 or greater. This is needed by CamiTK.")
message(SEND_ERROR "Failed to find Vtk 5.8 or greater. This is needed by CamiTK.")
endif()
if("${VTK_VERSION}" VERSION_LESS 5.8)
message(FATAL_ERROR "Found VTK ${VTK_VERSION} version but at least 5.8 is required. Please update your version of VTK.")
endif()
message(STATUS "Found suitable version of VTK : ${VTK_VERSION} (required is at least 5.8.0)")
include(${VTK_USE_FILE})
#-- CAMITK_DIR variable
......@@ -41,7 +45,8 @@ set(CAMITK_CMAKE_DIR ${CAMITK_DIR}/share/${CAMITK_SHORT_VERSION_STRING}/cm
# see http://qt-project.org/doc/qt-4.8/qsettings.html#platform-specific-notes
if(WIN32)
# %APPDATA%\MySoft\Star Runner.ini
set(CAMITK_USER_BASE_DIR $ENV{APPDATA})
set(CAMITK_USER_BASE_DIR_WINDOWS $ENV{APPDATA})
file(TO_CMAKE_PATH "${CAMITK_USER_BASE_DIR_WINDOWS}" CAMITK_USER_BASE_DIR)
else()
# (UNIX OR APPLE)
# $HOME/.config/MySoft/Star Runner.ini
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment