From: malaterre Date: Tue, 24 Jan 2006 20:05:17 +0000 (+0000) Subject: ENH: Nice trick to set a prefix to the lib X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1f9855840e616065eb9ef1b99f69680541b68aad;p=gdcm.git ENH: Nice trick to set a prefix to the lib --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ef6f8fe1..2481076c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 diff --git a/src/gdcmopenjpeg/CMakeLists.txt b/src/gdcmopenjpeg/CMakeLists.txt index 9dc7f1eb..c8f6e7c2 100644 --- a/src/gdcmopenjpeg/CMakeLists.txt +++ b/src/gdcmopenjpeg/CMakeLists.txt @@ -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/ diff --git a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt index a93cc916..6b0baebe 100644 --- a/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt +++ b/src/gdcmopenjpeg/libopenjpeg/CMakeLists.txt @@ -31,6 +31,6 @@ IF (WIN32) ENDIF (BUILD_SHARED_LIBS) ENDIF (WIN32) -ADD_LIBRARY(openjpeg ${openjpeg_SRCS}) +ADD_LIBRARY(${PARENT_PREFIX}openjpeg ${openjpeg_SRCS})