otbIncludeDirectories.cmake 4.81 KB
Newer Older
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $Id$
#-----------------------------------------------------------------------------
# Include directories for other projects installed on the system.
SET(OTB_INCLUDE_DIRS_SYSTEM "")

#-----------------------------------------------------------------------------
# Include directories from the build tree.
SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_BINARY_DIR})

# These directories are always needed.
SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
  ${OTB_SOURCE_DIR}/Code/Common
  ${OTB_SOURCE_DIR}/Code/BasicFilters
  ${OTB_SOURCE_DIR}/Code/IO
  ${OTB_SOURCE_DIR}/Code/ChangeDetection
  ${OTB_SOURCE_DIR}/Code/FeatureExtraction
  ${OTB_SOURCE_DIR}/Code/Learning
18
  ${OTB_SOURCE_DIR}/Code/MultiScale
19
  ${OTB_SOURCE_DIR}/Code/SpatialReasoning
20
  ${OTB_SOURCE_DIR}/Code/DisparityMap
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
21
  ${OTB_SOURCE_DIR}/Code/Visu
Julien Michel's avatar
Julien Michel committed
22
  ${OTB_SOURCE_DIR}/Code/Gui
23
24
  ${OTB_SOURCE_DIR}/Utilities/BGL
  ${OTB_SOURCE_DIR}/Utilities/BGL/boost
25
  ${OTB_SOURCE_DIR}/Utilities/otbsvm
Julien Michel's avatar
Julien Michel committed
26
  ${OTB_SOURCE_DIR}/Utilities/OSSIM
27
  ${OTB_SOURCE_DIR}/Utilities/OSSIM/include
Julien Michel's avatar
Julien Michel committed
28
  ${OTB_SOURCE_DIR}/Utilities/OSSIM/include/ossim
29
  ${OTB_SOURCE_DIR}/Utilities/dxflib
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
30
31
)

32
33
34
#-----------------------------------------------------------------------------
# Include directories from the ossim build tree
SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
35
${OTB_BINARY_DIR}/Utilities/OSSIM/include
36
37
38
)


Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
39
40
#-----------------------------------------------------------------------------
# Include directories from the GDAL build tree.
41
42
43
SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
  		${GDAL_INCLUDE_DIRS} )

44
45
#-----------------------------------------------------------------------------
# Include directories from the ITK build tree.e
46
IF(OTB_USE_EXTERNAL_ITK)
Julien Michel's avatar
Julien Michel committed
47
        INCLUDE(${ITK_SOURCE_DIR}/Utilities/itkThirdParty.cmake)
48
 	INCLUDE(${ITK_SOURCE_DIR}/itkIncludeDirectories.cmake)
Julien Michel's avatar
Julien Michel committed
49
50
51
	SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
	${ITK_SOURCE_DIR}/Utilities/vxl/v3p/netlib
 	${ITK_SOURCE_DIR}/Utilities/vxl/v3p/netlib/opt)
52
ELSE(OTB_USE_EXTERNAL_ITK)
53
        INCLUDE(${OTB_SOURCE_DIR}/Utilities/ITK/Utilities/itkThirdParty.cmake)
54
 	INCLUDE(${OTB_SOURCE_DIR}/Utilities/ITK/itkIncludeDirectories.cmake)
Julien Michel's avatar
Julien Michel committed
55
56
57
	SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
	${OTB_SOURCE_DIR}/Utilities/ITK/Utilities/vxl/v3p/netlib
	${OTB_SOURCE_DIR}/Utilities/ITK/Utilities/vxl/v3p/netlib/opt)
58
ENDIF(OTB_USE_EXTERNAL_ITK)
59

Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
60
61
62
63
64
65
66
67

#-----------------------------------------------------------------------------
# Include directories needed for .cxx files in OTB.  These include
# directories will NOT be available to user projects.
SET(OTB_INCLUDE_DIRS_BUILD_TREE_CXX)

SET(OTB_INCLUDE_DIRS_BUILD_TREE_CXX ${OTB_INCLUDE_DIRS_BUILD_TREE_CXX} )

68
SET(OTB_INCLUDE_DIRS_BUILD_TREE_CXX ${OTB_INCLUDE_DIRS_BUILD_TREE_CXX}
69
  		${GDAL_INCLUDE_DIRS} ${FLTK_INCLUDE_DIRS} )
70
71
72
73
74
75
76
77
78
79
80

IF(OTB_USE_EXTERNAL_ITK)
	SET(OTB_INCLUDE_DIRS_BUILD_TREE_CXX ${OTB_INCLUDE_DIRS_BUILD_TREE_CXX}
   			${ITK_INCLUDE_DIRS} )
#   			${ITK_INCLUDE_DIRS_INSTALL_TREE} 	)
ELSE(OTB_USE_EXTERNAL_ITK)
	SET(OTB_INCLUDE_DIRS_BUILD_TREE_CXX ${OTB_INCLUDE_DIRS_BUILD_TREE_CXX}
   			${ITK_INCLUDE_DIRS_BUILD_TREE} 
   			${ITK_INCLUDE_DIRS_BUILD_TREE_CXX} 	)
ENDIF(OTB_USE_EXTERNAL_ITK)

Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
81
82
#-----------------------------------------------------------------------------
# Include directories from the install tree.
83
84
SET(OTB_INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib/otb")
SET(OTB_INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
85
86
87
88
89
90
91
92
93
SET(OTB_INSTALL_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include/otb")
SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE}
  ${OTB_INSTALL_INCLUDE_DIR}
  ${OTB_INSTALL_INCLUDE_DIR}/Common
  ${OTB_INSTALL_INCLUDE_DIR}/BasicFilters
  ${OTB_INSTALL_INCLUDE_DIR}/IO
  ${OTB_INSTALL_INCLUDE_DIR}/ChangeDetection
  ${OTB_INSTALL_INCLUDE_DIR}/FeatureExtraction
  ${OTB_INSTALL_INCLUDE_DIR}/Learning
94
  ${OTB_INSTALL_INCLUDE_DIR}/MultiScale
95
  ${OTB_INSTALL_INCLUDE_DIR}/SpatialReasoning
96
  ${OTB_INSTALL_INCLUDE_DIR}/DisparityMap
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
97
  ${OTB_INSTALL_INCLUDE_DIR}/Visu
Julien Michel's avatar
Julien Michel committed
98
  ${OTB_INSTALL_INCLUDE_DIR}/Gui
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
99
  ${OTB_INSTALL_INCLUDE_DIR}/Utilities
100
  ${OTB_INSTALL_INCLUDE_DIR}/Utilities/ITK
101
102
  ${OTB_INSTALL_INCLUDE_DIR}/Utilities/BGL
  ${OTB_INSTALL_INCLUDE_DIR}/Utilities/BGL/boost
103
  ${OTB_INSTALL_INCLUDE_DIR}/Utilities/otbsvm
Romain Garrigues's avatar
nomsg    
Romain Garrigues committed
104
105
)

106
SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE}
107
  		${GDAL_INCLUDE_DIRS} ${FLTK_INCLUDE_DIRS})
108
109
110
111
112
113

IF(OTB_USE_EXTERNAL_ITK)
	SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE}
   			 ${ITK_INCLUDE_DIRS} )
#   			${ITK_INCLUDE_DIRS_INSTALL_TREE} 	)
ELSE(OTB_USE_EXTERNAL_ITK)
114
#THOMAS
115
	SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE}
116
117
118
			${ITK_INCLUDE_DIRS_INSTALL_TREE} )
#			${ITK_INCLUDE_DIRS_BUILD_TREE} 
#			${ITK_INCLUDE_DIRS_BUILD_TREE_CXX} )
119
ENDIF(OTB_USE_EXTERNAL_ITK)