X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmopenjpeg%2Flibopenjpeg%2FCMakeLists.txt;h=22d64a6daa07360e4b2dcd671e21d81a4d5769a2;hb=4fbe563dc18455266f880586fa2aca2cfb1012bc;hp=f2748dd4fb3eb4084602f6803f65cf07621ef505;hpb=4b12a00dc4f23ecd2df349051b54eff9ecef3247;p=gdcm.git diff --git a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt index f2748dd4..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 ) + +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.2 2005/10/24 15:39:38 malaterre Exp $ +## $Id: CMakeLists.txt,v 1.4 2005/10/24 20:53:32 malaterre Exp $ ## ## makefile for OpenJPEG library #