]> Creatis software - gdcm.git/commitdiff
ENH: Redo the BUILD_SHARED_LIBS -one more time- hopefully this time for real
authormalaterre <malaterre>
Sun, 5 Feb 2006 23:13:31 +0000 (23:13 +0000)
committermalaterre <malaterre>
Sun, 5 Feb 2006 23:13:31 +0000 (23:13 +0000)
CMakeLists.txt
Example/CMakeLists.txt
GDCMConfig.cmake.in
Testing/CMakeLists.txt
src/CMakeLists.txt
src/gdcmSerieHelper.cxx
src/gdcmopenjpeg/CMakeLists.txt

index 462a37f5bae2625a9bed31f0b633f7b8e2f5545e..4bc3d87f414e031ba9aac51038b854bdb7a943a1 100644 (file)
@@ -25,8 +25,7 @@ MARK_AS_ADVANCED(GDCM_LEGACY_REMOVE GDCM_LEGACY_SILENT)
 
 #-----------------------------------------------------------------------------
 # Build shared lib by default
-OPTION(GDCM_BUILD_SHARED_LIBS "Build GDCM with shared libraries." ON)
-SET(BUILD_SHARED_LIBS ${GDCM_BUILD_SHARED_LIBS})
+OPTION(BUILD_SHARED_LIBS "Build GDCM with shared libraries." ON)
 
 OPTION(GDCM_DEBUG "Turn verbosity of some statement ON." OFF)
 MARK_AS_ADVANCED(GDCM_DEBUG)
index b98cf1146ac93de9e30173b6bfaed6f0a1645f8f..bc720d750f1c63ac31ac22ce65953d7558f70c70 100644 (file)
@@ -34,6 +34,7 @@ SET(EXAMPLE_SOURCES
   ReWrite
   RawToDicom
   TestValidate
+  #BatchUncompress
   
 #the following will be transformed into 'examples', or 'utilities'
 #              or will be removed
index 0e895c4bf7f18cd560efa2a4726220febe7b7a67..8987890d76dcc93d031223c45833a732b8943dc1 100644 (file)
@@ -2,7 +2,7 @@ SET(GDCM_MAJOR_VERSION "@GDCM_MAJOR_VERSION@")
 SET(GDCM_MINOR_VERSION "@GDCM_MINOR_VERSION@")
 SET(GDCM_BUILD_VERSION "@GDCM_BUILD_VERSION@")
 
-SET(GDCM_BUILD_SHARED_LIBS "@GDCM_BUILD_SHARED_LIBS@")
+SET(GDCM_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
 SET(GDCM_USE_FILE "@GDCM_USE_FILE@")
 
 SET(GDCM_INCLUDE_DIRS "@GDCM_INCLUDE_DIRS@")
index c8b94ef4bc30e97a23cb9db6d1114ec14a8a1748..6be1a3753805e93401820a4de75adfe39fd497cb 100644 (file)
@@ -200,13 +200,13 @@ FILE(WRITE "${GDCM_BINARY_DIR}/gdcmDataSeqImages.h"
 #-----------------------------------------------------------------------------
 # Trying to solve a bizarre problem when loading shared lib if gdcm is static
 # Therefore I disable the test when building SHAREDLIBS
-IF(UNIX AND NOT GDCM_BUILD_SHARED_LIBS)
+IF(UNIX AND NOT BUILD_SHARED_LIBS)
   ADD_LIBRARY(dynmodule MODULE dynmodule.cxx)
   TARGET_LINK_LIBRARIES(dynmodule gdcm)
   ADD_EXECUTABLE(loadmodule loadmodule.cxx )
   TARGET_LINK_LIBRARIES(loadmodule gdcm -ldl)
   ADD_TEST(loadmodule ${CXX_TEST_PATH}/loadmodule)
-ENDIF(UNIX AND NOT GDCM_BUILD_SHARED_LIBS)
+ENDIF(UNIX AND NOT BUILD_SHARED_LIBS)
 
 
 
index cb360f294275f95443e9616762c1565bc3371e20..b00eb68a9691f85ee2ce04b1a32ccd14dab82bda 100644 (file)
@@ -73,6 +73,14 @@ SET(libgdcm_la_SOURCES
    ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
    )
 
+# Since OpenJPEG does not used configured headers we have to 
+# do the -D alternative
+IF(NOT BUILD_SHARED_LIBS)
+ SET_SOURCE_FILES_PROPERTIES(
+   ${GDCM_SOURCE_DIR}/src/gdcmJpeg2000.cxx
+   COMPILE_FLAGS -DOPJ_STATIC)
+ENDIF(NOT BUILD_SHARED_LIBS)
+
 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES})
 TARGET_LINK_LIBRARIES(gdcm 
   gdcmjpeg8 
index 9ba06874c528efa1c51983436b38519473196ad0..5d7b6c48dbc236fd25c9f4cbaeeab22fbc9ff5c6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/31 11:29:41 $
-  Version:   $Revision: 1.45 $
+  Date:      $Date: 2006/02/05 23:13:36 $
+  Version:   $Revision: 1.46 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -971,7 +971,7 @@ std::string SerieHelper::CreateUserDefinedFileIdentifier( File * inFile )
    {
       const ExDetail &r = *it2;
       s = inFile->GetEntryString( r.group, r.elem );
-      
+
       // User is allowed to ask 'convertion', to allow further ordering
       // e.g : 100 would be *before* 20; 000020.00 vs 00100.00 : OK
       if (it2->convert)
index fb070f58631203b9f8a8ed24693d2981251db827..a2b8d36e92fb639e753860a6984662f4795c1972 100644 (file)
@@ -21,6 +21,10 @@ SET(OPENJPEG_BUILD_VERSION 0)
 SET(OPENJPEG_VERSION
   "${OPENJPEG_MAJOR_VERSION}.${OPENJPEG_MINOR_VERSION}.${OPENJPEG_BUILD_VERSION}")
 
+#-----------------------------------------------------------------------------
+# OpenJPEG build configuration options.
+OPTION(BUILD_SHARED_LIBS "Build OpenJPEG with shared libraries." OFF)
+
 #-----------------------------------------------------------------------------
 # For the codec...
 OPTION(BUILD_EXAMPLES "Build the Examples (codec...)." OFF)