]> 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 ef6f8fe138e54f029682c59d66798c503aa5d308..2481076c69eb3f5d2db8ed58c24dc9f7c71af181 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 9dc7f1eb1160b9c92dbe7a8db6e426b496b13fd7..c8f6e7c2afee99744cfab49acfd547616f880ae9 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 a93cc9166eb10ce8dfb1f49671c62f5cbdd7bcf7..6b0baebeb771214a4a085a060c7d5ab882498dd9 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})