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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
5498914f
Commit
5498914f
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
COMP: compilation option to link to mapnik
parent
1b9353a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+29
-0
29 additions, 0 deletions
CMakeLists.txt
otbIncludeDirectories.cmake
+13
-0
13 additions, 0 deletions
otbIncludeDirectories.cmake
with
42 additions
and
0 deletions
CMakeLists.txt
+
29
−
0
View file @
5498914f
...
...
@@ -325,6 +325,35 @@ IF(OTB_USE_CURL)
ENDIF
(
OTB_USE_CURL
)
#-------------------------------
# Mapnik Library
#-------------------------------
OPTION
(
OTB_USE_MAPNIK
"Use mapnik library."
OFF
)
MARK_AS_ADVANCED
(
OTB_USE_MAPNIK
)
IF
(
OTB_USE_MAPNIK
)
FIND_PATH
(
MAPNIK_INCLUDE_DIR mapnik/map.hpp PATHS
)
MARK_AS_ADVANCED
(
MAPNIK_INCLUDE_DIR
)
IF
(
NOT MAPNIK_INCLUDE_DIR
)
MESSAGE
(
FATAL_ERROR
"Cannot find MAPNIK include directory. Please set MAPNIK_INCLUDE_DIR or SET OTB_USE_MAPNIK OFF."
)
ENDIF
(
NOT MAPNIK_INCLUDE_DIR
)
FIND_LIBRARY
(
MAPNIK_LIBRARY mapnik
)
MARK_AS_ADVANCED
(
MAPNIK_LIBRARY
)
IF
(
NOT MAPNIK_LIBRARY
)
MESSAGE
(
FATAL_ERROR
"Cannot find MAPNIK library. Please set MAPNIK_LIBRARY or SET OTB_USE_MAPNIK OFF."
)
ENDIF
(
NOT MAPNIK_LIBRARY
)
# Add compiler option
ADD_DEFINITIONS
(
-DOTB_USE_MAPNIK
)
INCLUDE_DIRECTORIES
(
${
MAPNIK_INCLUDE_DIR
}
)
ENDIF
(
OTB_USE_MAPNIK
)
#-------------------------------
# Boost Library
#-------------------------------
...
...
This diff is collapsed.
Click to expand it.
otbIncludeDirectories.cmake
+
13
−
0
View file @
5498914f
...
...
@@ -93,6 +93,13 @@ IF(OTB_USE_CURL)
${
CURL_INCLUDE_DIR
}
)
ENDIF
(
OTB_USE_CURL
)
#-----------------------------------------------------------------------------
# Include directories from the MAPNIK build tree.
IF
(
OTB_USE_MAPNIK
)
SET
(
OTB_INCLUDE_DIRS_BUILD_TREE
${
OTB_INCLUDE_DIRS_BUILD_TREE
}
${
MAPNIK_INCLUDE_DIR
}
)
ENDIF
(
OTB_USE_MAPNIK
)
#-----------------------------------------------------------------------------
# Include directories from the ITK build tree.
IF
(
OTB_USE_EXTERNAL_ITK
)
...
...
@@ -287,6 +294,12 @@ IF(OTB_USE_CURL)
${
CURL_INCLUDE_DIR
}
)
ENDIF
(
OTB_USE_CURL
)
#For MAPNIK header file
IF
(
OTB_USE_MAPNIK
)
SET
(
OTB_INCLUDE_ABSOLUE_DIRS
${
OTB_INCLUDE_ABSOLUE_DIRS
}
${
MAPNIK_INCLUDE_DIR
}
)
ENDIF
(
OTB_USE_MAPNIK
)
# For OpentTreads header file
IF
(
OTB_USE_EXTERNAL_OPENTHREADS
)
SET
(
OTB_INCLUDE_ABSOLUE_DIRS
${
OTB_INCLUDE_ABSOLUE_DIRS
}
...
...
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