Commit d4e1f907 authored by Julien Malik's avatar Julien Malik

COMP: ImageIOFactory needs the definition of OTB_CURL_MULTI_AVAILABLE

parent 67bd11f9
......@@ -30,10 +30,15 @@
#include "otbBSQImageIOFactory.h"
#include "otbRADImageIOFactory.h"
#include "otbMWImageIOFactory.h"
#ifdef OTB_USE_JPEG2000
# include "otbJPEG2000ImageIOFactory.h"
#endif
#include "otb_curl.h"
#ifdef OTB_CURL_MULTI_AVAILABLE
#include "otbTileMapImageIOFactory.h"
#endif
namespace otb
{
......
project(OTBCurl)
set(OTBCurl_SYSTEM_INCLUDE_DIRS ${CURL_INCLUDE_DIRS})
set(OTBCurl_LIBRARIES "${CURL_LIBRARIES}")
try_compile(OTB_CURL_MULTI_AVAILABLE
${CMAKE_CURRENT_BINARY_DIR}/CMake
${CMAKE_CURRENT_SOURCE_DIR}/CMake/otbTestCurlMulti.cxx
......@@ -11,6 +8,12 @@ try_compile(OTB_CURL_MULTI_AVAILABLE
configure_file( src/otb_curl.h.in src/otb_curl.h )
set(OTBCurl_SYSTEM_INCLUDE_DIRS ${CURL_INCLUDE_DIRS})
set(OTBCurl_LIBRARIES "${CURL_LIBRARIES}")
set(OTBCurl_INCLUDE_DIRS
${OTBCurl_BINARY_DIR}
)
otb_module_impl()
install(FILES ${OTBCurl_BINARY_DIR}/src/otb_curl.h
......
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