From 33170cdb58d1b0421189461333b654af40607114 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Mon, 4 May 2009 16:09:20 +0800
Subject: [PATCH] ENH: configuration for mapnik (considered as EXPERIMENTAL)

---
 CMakeLists.txt             | 2 +-
 Code/Common/CMakeLists.txt | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba412b190d..96023a6eb8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -328,7 +328,7 @@ ENDIF(OTB_USE_CURL)
 #-------------------------------
 # Mapnik Library
 #-------------------------------
-OPTION(OTB_USE_MAPNIK "Use mapnik library." OFF)
+OPTION(OTB_USE_MAPNIK "Use mapnik library (EXPERIMENTAL)." OFF)
 MARK_AS_ADVANCED(OTB_USE_MAPNIK)
 IF(OTB_USE_MAPNIK)
 
diff --git a/Code/Common/CMakeLists.txt b/Code/Common/CMakeLists.txt
index ee0d097e50..d6ac37d2af 100644
--- a/Code/Common/CMakeLists.txt
+++ b/Code/Common/CMakeLists.txt
@@ -8,6 +8,11 @@ ENDIF( NOT OTB_USE_MAPNIK )
 
 ADD_LIBRARY(OTBCommon ${OTBCommon_SRCS})
 TARGET_LINK_LIBRARIES (OTBCommon ITKAlgorithms ITKStatistics ITKCommon)
+IF (OTB_USE_MAPNIK)
+#TODO this line should be refined when we will like to have this capability with windows
+    TARGET_LINK_LIBRARIES(OTBCommon ${MAPNIK_LIBRARY}/libmapnik.so)
+ENDIF(OTB_USE_MAPNIK)
+
 IF(OTB_LIBRARY_PROPERTIES)
   SET_TARGET_PROPERTIES(OTBCommon PROPERTIES ${OTB_LIBRARY_PROPERTIES})
 ENDIF(OTB_LIBRARY_PROPERTIES)
-- 
GitLab