Commit 6f930ac0 authored by Emmanuel Christophe's avatar Emmanuel Christophe

COMP: look for the gettext lib (cf windows)

parent 9073dc16
......@@ -623,6 +623,8 @@ IF(GETTEXT_FOUND)
FIND_PATH(GETTEXT_INCLUDE_DIR
libintl.h
DOC "Path to gettext include directory (where libintl.h can be found)")
FIND_LIBRARY(GETTEXT_LIBRARY gettextlib
DOC "GetText library")
MARK_AS_ADVANCED(GETTEXT_INCLUDE_DIR)
IF(GETTEXT_INCLUDE_DIR)
INCLUDE_DIRECTORIES(${GETTEXT_INCLUDE_DIR})
......
......@@ -16,11 +16,15 @@ TARGET_LINK_LIBRARIES (OTBCommon ITKAlgorithms ITKStatistics ITKCommon otbconfig
IF(OTB_USE_MAPNIK)
TARGET_LINK_LIBRARIES(OTBCommon ${MAPNIK_LIBRARY})
ENDIF(OTB_USE_MAPNIK)
IF(OTB_USE_PQXX)
#TODO this line should be refined when we will like to have this capability with windows
TARGET_LINK_LIBRARIES(OTBCommon pq pqxx)
ENDIF(OTB_USE_PQXX)
IF(GETTEXT_FOUND)
TARGET_LINK_LIBRARIES(OTBCommon ${GETTEXT_LIBRARY})
ENDIF(GETTEXT_FOUND)
IF(OTB_LIBRARY_PROPERTIES)
SET_TARGET_PROPERTIES(OTBCommon PROPERTIES ${OTB_LIBRARY_PROPERTIES})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment