-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
55 lines (46 loc) · 1.65 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
PROJECT(ParaViewITKPlugins)
SET(CMAKE_MODULE_PATH ${ParaViewITKPlugins_SOURCE_DIR}/CMake)
FIND_PACKAGE(ParaView REQUIRED)
IF(ParaView_FOUND)
INCLUDE(${PARAVIEW_USE_FILE})
INCLUDE(${ParaView_CMAKE_DIR}/ParaViewPlugins.cmake)
ELSE(ParaView_FOUND)
MESSAGE(FATAL_ERROR "Cannot locate ParaView directory.")
ENDIF(ParaView_FOUND)
FIND_PACKAGE(ITK REQUIRED)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
MESSAGE(FATAL_ERROR "Cannot locate ITK directory.")
ENDIF(ITK_FOUND)
MARK_AS_ADVANCED(USE_FFTWD)
OPTION(USE_FFTWD "Use double precision FFTW if found" ON)
MARK_AS_ADVANCED(USE_FFTWF)
OPTION(USE_FFTWF "Use single precision FFTW if found" ON)
FIND_PACKAGE(FFTW REQUIRED)
INCLUDE_DIRECTORIES(
${ParaViewITKPlugins_SOURCE_DIR}
${ParaViewITKPlugins_SOURCE_DIR}/Common
)
# Add supporting directories below
ADD_SUBDIRECTORY( Common )
ADD_SUBDIRECTORY( InsightJournal )
# Add plugins directories below
ADD_SUBDIRECTORY( GaussianBlurImageFilter )
ADD_SUBDIRECTORY( GaussianImageSource )
ADD_SUBDIRECTORY( LaplacianOfGaussianFilter )
ADD_SUBDIRECTORY( MedianImageFilter )
ADD_SUBDIRECTORY( MeanImageFilter )
ADD_SUBDIRECTORY( OtsuThresholdImageFilter )
ADD_SUBDIRECTORY( Hessian3DToVesselnessMeasureImageFilter)
ADD_SUBDIRECTORY( BinaryThinningImageFilter )
ADD_SUBDIRECTORY( MultiScaleObjectnessFilter )
ADD_SUBDIRECTORY( BinaryThresholdImageFilter )
ADD_SUBDIRECTORY( ConnectedThresholdImageFilter )
ADD_SUBDIRECTORY( ConnectedComponentImageFilter )
# These plugin does not currently compile on Windows
IF( NOT WIN32 )
ADD_SUBDIRECTORY( NoiseImageFilter )
ADD_SUBDIRECTORY( FFTConvolutionImageFilter )
ADD_SUBDIRECTORY( DeconvolutionFilters )
ENDIF( NOT WIN32 )