1 #=========================================================
5 INCLUDE("${ITK_USE_FILE}")
7 MESSAGE(FATAL_ERROR "Cannot build without ITK. Please set ITK_DIR.")
9 #=========================================================
11 #=========================================================
13 FIND_PACKAGE(VTK REQUIRED)
15 INCLUDE("${VTK_USE_FILE}")
16 IF(VTK_VERSION VERSION_LESS 5.8.0)
27 ENDIF(VTK_VERSION VERSION_LESS 5.8.0)
28 IF(VTK_VERSION VERSION_LESS 5.6.0)
33 ENDIF(VTK_VERSION VERSION_LESS 5.6.0)
35 MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
37 #=========================================================
39 #=========================================================
40 # Find gengetopt, will create a target exe if not found
41 SET(CMAKE_MODULE_PATH "${CLITK_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
42 FIND_PACKAGE(Gengetopt)
43 #=========================================================
45 #=========================================================
46 # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library
47 FIND_LIBRARY(LIBSTATGRAB NAMES statgrab PATHS)
48 IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
49 # MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information")
50 SET(CLITK_MEMORY_INFO OFF)
51 ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
52 SET(CLITK_MEMORY_INFO ON)
53 ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
54 #=========================================================