Commit 3a4174d0 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

ENH: add .dll files in the install bin dir and .lib files in the install lib...

ENH: add .dll files in the install bin dir and .lib files in the install lib dir for GDAL libraries.
parent 6d66362e
......@@ -923,5 +923,15 @@ SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright/OTBCopyri
FILE(READ ${CPACK_PACKAGE_DESCRIPTION_FILE} CPACK_RPM_PACKAGE_DESCRIPTION)
FILE(READ ${CPACK_PACKAGE_DESCRIPTION_FILE} CPACK_DEBIAN_PACKAGE_DESCRIPTION)
#Find gdal dll files, localized in the GDAL_LIBRARY directory
GET_FILENAME_COMPONENT(GDAL_LIB_DIR "${GDAL_LIBRARY}" PATH )
SET(GDAL_LIB_DIR "${GDAL_LIB_DIR}/" )
INSTALL(DIRECTORY ${GDAL_LIB_DIR}
DESTINATION bin
FILES_MATCHING PATTERN "*.dll" )
INSTALL(DIRECTORY ${GDAL_LIB_DIR}
DESTINATION lib
FILES_MATCHING PATTERN "*.lib" )
INCLUDE(CPack)
......@@ -16,6 +16,8 @@ SET(OTB_USE_EXTERNAL_ITK "@OTB_USE_EXTERNAL_ITK@")
# Option use external ITK.
SET(OTB_USE_EXTERNAL_FLTK "@OTB_USE_EXTERNAL_FLTK@")
# GDAL library path
SET(GDAL_LIBRARY "@GDAL_LIBRARY@")
# The OTB source tree.
SET(OTB_SOURCE_DIR "@OTB_SOURCE_DIR@")
......
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