X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmopenjpeg%2Flibopenjpeg%2FCMakeLists.txt;h=22d64a6daa07360e4b2dcd671e21d81a4d5769a2;hb=3f8964856e65c2447beab900b04a63d003192bf9;hp=055edab507f570887c2487b91796db37037bd8ca;hpb=7452f3039ff4dd2574fcbf3343b530a2f20f9623;p=gdcm.git diff --git a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt index 055edab5..22d64a6d 100644 --- a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt +++ b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt @@ -1,3 +1,4 @@ +INCLUDE_REGULAR_EXPRESSION("^.*$") # Create the lib SET(openjpeg_SRCS bio.c @@ -18,9 +19,21 @@ SET(openjpeg_SRCS jpt.c jp2.c ) -ADD_LIBRARY(openjpeg ${openjpeg_SRCS}) -## $Id: CMakeLists.txt,v 1.1 2005/10/24 15:34:56 malaterre Exp $ +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.4 2005/10/24 20:53:32 malaterre Exp $ ## ## makefile for OpenJPEG library #