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
f0227cea
Commit
f0227cea
authored
14 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
COMP : fix compilation errors when OTB is compiled wihtout mapnick support
parent
977fbda9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/Visualization/CMakeLists.txt
+21
-12
21 additions, 12 deletions
Examples/Visualization/CMakeLists.txt
with
21 additions
and
12 deletions
Examples/Visualization/CMakeLists.txt
+
21
−
12
View file @
f0227cea
...
...
@@ -4,8 +4,10 @@ INCLUDE_REGULAR_EXPRESSION("^.*$")
ADD_EXECUTABLE
(
VisuExample1 VisuExample1.cxx
)
TARGET_LINK_LIBRARIES
(
VisuExample1 OTBVisualization OTBGui OTBIO OTBCommon
${
OTB_VISU_GUI_LIBRARIES
}
)
ADD_EXECUTABLE
(
VectorDataRendering VectorDataRendering.cxx
)
TARGET_LINK_LIBRARIES
(
VectorDataRendering OTBVisualization OTBGui OTBIO OTBCommon
${
OTB_VISU_GUI_LIBRARIES
}
)
IF
(
OTB_USE_MAPNIK
)
ADD_EXECUTABLE
(
VectorDataRendering VectorDataRendering.cxx
)
TARGET_LINK_LIBRARIES
(
VectorDataRendering OTBVisualization OTBGui OTBIO OTBCommon
${
OTB_VISU_GUI_LIBRARIES
}
)
ENDIF
(
OTB_USE_MAPNIK
)
IF
(
NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING
)
...
...
@@ -25,17 +27,24 @@ SET(TOL 0.0)
SET
(
EPSILON_4 0.0001
)
IF
(
OTB_DATA_USE_LARGEINPUT
)
ADD_TEST
(
vrTeVectorDataRendering
${
EXE_TESTS
}
VectorDataRenderingTest
${
INPUTLARGEDATA
}
/QUICKBIRD/TOULOUSE/000000128955_01_P001_MUL/02APR01105228-M1BS-000000128955_01_P001.TIF
${
INPUTLARGEDATA
}
/VECTOR/MidiPyrenees/roads.shp
${
OTB_DATA_ROOT
}
/Input/DEM/srtm_directory
0
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
IF
(
OTB_USE_MAPNIK
)
ADD_TEST
(
vrTeVectorDataRendering
${
EXE_TESTS
}
VectorDataRenderingTest
${
INPUTLARGEDATA
}
/QUICKBIRD/TOULOUSE/000000128955_01_P001_MUL/02APR01105228-M1BS-000000128955_01_P001.TIF
${
INPUTLARGEDATA
}
/VECTOR/MidiPyrenees/roads.shp
${
OTB_DATA_ROOT
}
/Input/DEM/srtm_directory
0
)
ENDIF
(
OTB_USE_MAPNIK
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT AND OTB_USE_MAPNIK
)
INCLUDE_DIRECTORIES
(
${
OTB_SOURCE_DIR
}
/Testing/Code
)
ADD_EXECUTABLE
(
otbVisualizationExamplesTests otbVisualizationExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbVisualizationExamplesTests OTBCommon OTBIO OTBVisualization OTBTesting
)
# Compile the example only if OTB uses mapnick
# This file (for tests registration) will be reserved for test using mapnick
IF
(
OTB_USE_MAPNIK
)
ADD_EXECUTABLE
(
otbVisualizationExamplesTests otbVisualizationExamplesTests.cxx
)
TARGET_LINK_LIBRARIES
(
otbVisualizationExamplesTests OTBCommon OTBIO OTBVisualization OTBTesting
)
ENDIF
(
OTB_USE_MAPNIK
)
ENDIF
(
NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING
)
\ No newline at end of file
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