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)
28 ENDIF(VTK_VERSION VERSION_LESS 5.8.0)
30 MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
32 #=========================================================
34 #=========================================================
35 # Find gengetopt, will create a target exe if not found
36 SET(CMAKE_MODULE_PATH "${CLITK_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
37 FIND_PACKAGE(Gengetopt)
38 #=========================================================
40 #=========================================================
41 # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library
42 FIND_LIBRARY(LIBSTATGRAB NAMES statgrab PATHS)
43 IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
44 # MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information")
45 SET(CLITK_MEMORY_INFO OFF)
46 ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
47 LINK_DIRECTORIES(${LIBSTATGRAB}/../lib)
48 LINK_DIRECTORIES(${LIBSTATGRAB}/../lib64)
49 INCLUDE_DIRECTORIES(${LIBSTATGRAB}/../include)
50 SET(CLITK_MEMORY_INFO ON)
51 ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
52 #=========================================================