Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
0e0ccbac
Commit
0e0ccbac
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
COMP: cleaning compilation process
parent
7d456e53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+25
-11
25 additions, 11 deletions
CMakeLists.txt
Examples/DataRepresentation/CMakeLists.txt
+4
-6
4 additions, 6 deletions
Examples/DataRepresentation/CMakeLists.txt
otbIncludeDirectories.cmake
+5
-9
5 additions, 9 deletions
otbIncludeDirectories.cmake
with
34 additions
and
26 deletions
CMakeLists.txt
+
25
−
11
View file @
0e0ccbac
...
...
@@ -954,14 +954,28 @@ ENDIF(OTB_USE_VISU_GUI)
OPTION
(
BUILD_EXAMPLES
"Build the Examples directory."
OFF
)
#-----------------------------------------------------------------------------
# The entire OTB tree should use the same include path
# Create the list of include directories needed for OTB header files.
INCLUDE
(
${
OTB_SOURCE_DIR
}
/otbIncludeDirectories.cmake
)
# This should be the only INCLUDE_DIRECTORIES command in the entire
# tree, except for the Utilities and Wrapping directories. We need to
# do this in one place to make sure the order is correct.
INCLUDE_DIRECTORIES
(
${
OTB_INCLUDE_DIRS_BUILD_TREE
}
${
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
}
${
OTB_INCLUDE_DIRS_SYSTEM
}
)
#-----------------------------------------------------------------------------
# Dispatch the build into the proper subdirectories.
#Note: SUBDIRS is deprecated and should be replaced by ADD_SUBDIRECTORY
SUBDIRS
(
Utilities Code
)
#ADD_SUBDIRECTORY(Utilities)
#ADD_SUBDIRECTORY(Code)
#ADD_SUBDIRECTORY(Utilities/otbsvm)
#Note: SUBDIRS is deprecated and is replaced by ADD_SUBDIRECTORY
#SUBDIRS(Utilities Code)
ADD_SUBDIRECTORY
(
Utilities
)
ADD_SUBDIRECTORY
(
Code
)
IF
(
BUILD_EXAMPLES
)
ADD_SUBDIRECTORY
(
Examples
)
...
...
@@ -1031,16 +1045,16 @@ CONFIGURE_FILE(${OTB_SOURCE_DIR}/otbConfigure.h.in
# The entire OTB tree should use the same include path
# Create the list of include directories needed for OTB header files.
INCLUDE
(
${
OTB_SOURCE_DIR
}
/otbIncludeDirectories.cmake
)
#
INCLUDE(${OTB_SOURCE_DIR}/otbIncludeDirectories.cmake)
# This should be the only INCLUDE_DIRECTORIES command in the entire
# tree, except for the Utilities and Wrapping directories. We need to
# do this in one place to make sure the order is correct.
INCLUDE_DIRECTORIES
(
${
OTB_INCLUDE_DIRS_BUILD_TREE
}
${
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
}
${
OTB_INCLUDE_DIRS_SYSTEM
}
)
#
INCLUDE_DIRECTORIES(
#
${OTB_INCLUDE_DIRS_BUILD_TREE}
#
${OTB_INCLUDE_DIRS_BUILD_TREE_CXX}
#
${OTB_INCLUDE_DIRS_SYSTEM}
#
)
#-----------------------------------------------------------------------------
# Uninstall cmake use to uninstall OTB.
...
...
This diff is collapsed.
Click to expand it.
Examples/DataRepresentation/CMakeLists.txt
+
4
−
6
View file @
0e0ccbac
SUBDIRS
(
Containers
Image
Mesh
Path
)
ADD_SUBDIRECTORY
(
Containers
)
ADD_SUBDIRECTORY
(
Image
)
ADD_SUBDIRECTORY
(
Mesh
)
ADD_SUBDIRECTORY
(
Path
)
This diff is collapsed.
Click to expand it.
otbIncludeDirectories.cmake
+
5
−
9
View file @
0e0ccbac
...
...
@@ -19,7 +19,10 @@ ELSE(OTB_USE_EXTERNAL_BOOST)
)
ENDIF
(
OTB_USE_EXTERNAL_BOOST
)
#-----------------------------------------------------------------------------
# Include directories from the GDAL build tree.
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE
${
OTB_INCLUDE_DIRS_BUILD_TREE
}
${
GDAL_INCLUDE_DIR
}
)
# These directories are always needed.
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE
${
OTB_INCLUDE_DIRS_BUILD_TREE
}
...
...
@@ -97,10 +100,7 @@ SET(OTB_INCLUDE_DIRS_BUILD_TREE ${OTB_INCLUDE_DIRS_BUILD_TREE}
)
#-----------------------------------------------------------------------------
# Include directories from the GDAL build tree.
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE
${
OTB_INCLUDE_DIRS_BUILD_TREE
}
${
GDAL_INCLUDE_DIR
}
)
#-----------------------------------------------------------------------------
# Include directories from the CURL build tree.
IF
(
OTB_USE_CURL
)
...
...
@@ -221,10 +221,6 @@ SET(OTB_INCLUDE_DIRS_BUILD_TREE_CXX ${OTB_INCLUDE_DIRS_BUILD_TREE_CXX} )
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
${
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
}
${
OTB_GLU_INCLUDE_PATH
}
)
#For GDAL header file
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
${
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
}
${
GDAL_INCLUDE_DIR
}
)
#For EXPAT header file
IF
(
OTB_USE_EXTERNAL_EXPAT
)
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
${
OTB_INCLUDE_DIRS_BUILD_TREE_CXX
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment