Commit 8bbf6ddb authored by Guillaume Pasero's avatar Guillaume Pasero

COMP: VC10: missing defines for OpenJpeg

parent 3ab38c4a
......@@ -33,6 +33,14 @@ set(OPENJPEG_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/libopenjpeg/function_list.c
)
if(WIN32)
if(BUILD_SHARED_LIBS)
add_definitions(-DOPJ_EXPORTS)
else()
add_definitions(-DOPJ_STATIC)
endif()
endif()
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/CMake
${CMAKE_MODULE_PATH})
......@@ -100,4 +108,4 @@ install(TARGETS otbopenjpeg
# Purposely NOT installing headers
otb_module_target( otbopenjpeg NO_INSTALL )
\ No newline at end of file
otb_module_target( otbopenjpeg NO_INSTALL )
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