X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmopenjpeg%2Flibopenjpeg%2FCMakeLists.txt;h=22d64a6daa07360e4b2dcd671e21d81a4d5769a2;hb=3f8964856e65c2447beab900b04a63d003192bf9;hp=43d01117810a91f8231de85aa40fa4466477412a;hpb=5aaee60665d694d3fef70c95a6b064e70cee26bf;p=gdcm.git diff --git a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt index 43d01117..22d64a6d 100644 --- a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt +++ b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt @@ -19,9 +19,21 @@ SET(openjpeg_SRCS jpt.c jp2.c ) + +IF (WIN32) + IF (BUILD_SHARED_LIBS) + ADD_DEFINITIONS(-DOPENJPEGDLL) + #SET(JPEGDLL 1) + ELSE (BUILD_SHARED_LIBS) + ADD_DEFINITIONS(-DOPENJPEGSTATIC) + #SET(JPEGSTATIC 1) + ENDIF (BUILD_SHARED_LIBS) +ENDIF (WIN32) + + ADD_LIBRARY(gdcmopenjpeg ${openjpeg_SRCS}) -## $Id: CMakeLists.txt,v 1.3 2005/10/24 15:58:35 malaterre Exp $ +## $Id: CMakeLists.txt,v 1.4 2005/10/24 20:53:32 malaterre Exp $ ## ## makefile for OpenJPEG library #