Skip to content
Snippets Groups Projects
Commit f0227cea authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment