]> Creatis software - gdcm.git/commitdiff
ENH: Nice trick to set a prefix to the lib
authormalaterre <malaterre>
Tue, 24 Jan 2006 20:05:17 +0000 (20:05 +0000)
committermalaterre <malaterre>
Tue, 24 Jan 2006 20:05:17 +0000 (20:05 +0000)
src/CMakeLists.txt
src/gdcmopenjpeg/CMakeLists.txt
src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt

index ef6f8fe..2481076 100644 (file)
@@ -2,6 +2,7 @@
 # Rebuild gdcm whenever a file starting with gdcm* is modified
 INCLUDE_REGULAR_EXPRESSION("^gdcm.*$")
 
+SET(PARENT_PREFIX gdcm)
 SUBDIRS(
   gdcmjpeg
   #gdcmmpeg2
index 9dc7f1e..c8f6e7c 100644 (file)
@@ -36,6 +36,7 @@ IF(OPJ_STANDALONE)
     ENABLE_TESTING()
   ENDIF(BUILD_TESTING)
 ENDIF(OPJ_STANDALONE)
+
 # TODO, technically we should add tests, e.g:
 # http://www.crc.ricoh.com/~gormish/jpeg2000conformance/
 
index a93cc91..6b0baeb 100644 (file)
@@ -31,6 +31,6 @@ IF (WIN32)
   ENDIF (BUILD_SHARED_LIBS)
 ENDIF (WIN32)
 
-ADD_LIBRARY(openjpeg ${openjpeg_SRCS})
+ADD_LIBRARY(${PARENT_PREFIX}openjpeg ${openjpeg_SRCS})