--- CMake/BuildLibrary.cmake.orig 2011-01-12 14:30:46.000000000 +0000 +++ CMake/BuildLibrary.cmake 2011-01-13 09:30:51.000000000 +0000 @@ -0,0 +1,8 @@ +MACRO(BUILD_LIBRARY library_name ) + SET(SOURCES ${ARGN}) + ADD_LIBRARY(${library_name} STATIC ${SOURCES}) + ADD_LIBRARY(${library_name}Shared SHARED ${SOURCES}) + SET_TARGET_PROPERTIES(${library_name}Shared PROPERTIES OUTPUT_NAME ${library_name}) + INSTALL_TARGETS(${INSTALL_LIBDIR} ${library_name}) + INSTALL_TARGETS(${INSTALL_LIBDIR} ${library_name}Shared) +ENDMACRO(BUILD_LIBRARY) --- dcmtls/libsrc/CMakeLists.txt.orig 2010-04-29 16:18:39.000000000 +0000 +++ dcmtls/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmtls tlslayer tlstrans tlsscu) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmtls) +# invoke macro to build and declare installation files +SET(SOURCES tlslayer tlstrans tlsscu) +BUILD_LIBRARY(dcmtls ${SOURCES}) --- dcmdata/libi2d/CMakeLists.txt.orig 2009-07-16 14:25:38.000000000 +0000 +++ dcmdata/libi2d/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(libi2d i2d i2dplvlp i2djpgs i2dbmps i2dplsc i2dplnsc) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} libi2d) +# invoke macro to build and declare installation files +SET(SOURCES i2d i2dplvlp i2djpgs i2dbmps i2dplsc i2dplnsc) +BUILD_LIBRARY(i2d ${SOURCES}) --- dcmdata/libsrc/CMakeLists.txt.orig 2010-08-27 15:26:01.000000000 +0000 +++ dcmdata/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmdata cmdlnarg dcbytstr dcchrstr dccodec dcdatset dcddirif dcdicdir dcdicent dcdict dcdictzz dcdirrec dcelem dcerror dcfilefo dchashdi dcistrma dcistrmb dcistrmf dcistrmz dcitem dclist dcmetinf dcobject dcostrma dcostrmb dcostrmf dcostrmz dcpcache dcpixel dcpixseq dcpxitem dcrleccd dcrlecce dcrlecp dcrledrg dcrleerg dcrlerp dcsequen dcstack dcswap dctag dctagkey dctypes dcuid dcwcache dcvm dcvr dcvrae dcvras dcvrat dcvrcs dcvrda dcvrds dcvrdt dcvrfd dcvrfl dcvris dcvrlo dcvrlt dcvrobow dcvrof dcvrpn dcvrpobw dcvrsh dcvrsl dcvrss dcvrst dcvrtm dcvrui dcvrul dcvrulup dcvrus dcvrut dcxfer dcpath vrscan vrscanl) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmdata) +# invoke macro to build and declare installation files +SET(SOURCES cmdlnarg dcbytstr dcchrstr dccodec dcdatset dcddirif dcdicdir dcdicent dcdict dcdictzz dcdirrec dcelem dcerror dcfilefo dchashdi dcistrma dcistrmb dcistrmf dcistrmz dcitem dclist dcmetinf dcobject dcostrma dcostrmb dcostrmf dcostrmz dcpcache dcpixel dcpixseq dcpxitem dcrleccd dcrlecce dcrlecp dcrledrg dcrleerg dcrlerp dcsequen dcstack dcswap dctag dctagkey dctypes dcuid dcwcache dcvm dcvr dcvrae dcvras dcvrat dcvrcs dcvrda dcvrds dcvrdt dcvrfd dcvrfl dcvris dcvrlo dcvrlt dcvrobow dcvrof dcvrpn dcvrpobw dcvrsh dcvrsl dcvrss dcvrst dcvrtm dcvrui dcvrul dcvrulup dcvrus dcvrut dcxfer dcpath vrscan vrscanl) +BUILD_LIBRARY(dcmdata ${SOURCES}) --- dcmpstat/libsrc/CMakeLists.txt.orig 2005-09-15 08:17:54.000000000 +0000 +++ dcmpstat/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,6 @@ -# create library from source files -ADD_LIBRARY(dcmpstat dcmpstat dviface dvpsab dvpsabl dvpsal dvpsall dvpscf dvpscu dvpscul dvpsda dvpsdal dvpsfs dvpsga dvpsgal dvpsgl dvpsgll dvpsgr dvpsgrl dvpshlp dvpsib dvpsibl dvpsmsg dvpsov dvpsovl dvpspl dvpspl2 dvpspll dvpspr dvpsprt dvpsri dvpsril dvpsrs dvpsrsl dvpssp dvpsspl dvpssv dvpssvl dvpstat dvpstx dvpstxl dvpsvl dvpsvll dvpsvw dvpsvwl dvsighdl) +# invoke macro to build and declare installation files +SET(SOURCES dcmpstat dviface dvpsab dvpsabl dvpsal dvpsall dvpscf dvpscu dvpscul dvpsda dvpsdal dvpsfs dvpsga dvpsgal dvpsgl dvpsgll dvpsgr dvpsgrl dvpshlp dvpsib dvpsibl dvpsmsg dvpsov dvpsovl dvpspl dvpspl2 dvpspll dvpspr dvpsprt dvpsri dvpsril dvpsrs dvpsrsl dvpssp dvpsspl dvpssv dvpssvl dvpstat dvpstx dvpstxl dvpsvl dvpsvll dvpsvw dvpsvwl dvsighdl) +BUILD_LIBRARY(dcmpstat ${SOURCES}) -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmpstat) +TARGET_LINK_LIBRARIES(dcmpstatShared dcmsr) +TARGET_LINK_LIBRARIES(dcmpstat dcmsr) --- oflog/libsrc/CMakeLists.txt.orig 2010-12-08 13:19:02.000000000 +0000 +++ oflog/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,4 +1,4 @@ -# create library from source files +# select additional sources basing on platform IF(WIN32 AND NOT CYGWIN) SET(OFLOG_PLATFORM_LIBRARIES winsock windebap winconap) @@ -6,7 +6,6 @@ SET(OFLOG_PLATFORM_LIBRARIES unixsock) ENDIF(WIN32 AND NOT CYGWIN) -ADD_LIBRARY(oflog oflog apndimpl appender config consap factory fileap filter globinit hierarchy hierlock layout logger logimpl logevent loglevel loglog lloguser ndc ntelogap nullap objreg patlay pointer property rootlog sleep socketap sockbuff socket strhelp syncprims syslogap threads timehelp ${OFLOG_PLATFORM_LIBRARIES}) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} oflog) +# invoke macro to build and declare installation files +SET(SOURCES oflog apndimpl appender config consap factory fileap filter globinit hierarchy hierlock layout logger logimpl logevent loglevel loglog lloguser ndc ntelogap nullap objreg patlay pointer property rootlog sleep socketap sockbuff socket strhelp syncprims syslogap threads timehelp ${OFLOG_PLATFORM_LIBRARIES}) +BUILD_LIBRARY(oflog ${SOURCES}) --- dcmsign/libsrc/CMakeLists.txt.orig 2005-09-15 08:21:03.000000000 +0000 +++ dcmsign/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmdsig dcsignat siautopr sibrsapr sicert sicertvf sicreapr sidsa simaccon simd5 sinullpr siprivat siripemd sirsa sisha1 sisprof sitypes) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmdsig) +# invoke macro to build and declare installation files +SET(SOURCES dcsignat siautopr sibrsapr sicert sicertvf sicreapr sidsa simaccon simd5 sinullpr siprivat siripemd sirsa sisha1 sisprof sitypes) +BUILD_LIBRARY(dcmdsig ${SOURCES}) --- dcmwlm/libsrc/CMakeLists.txt.orig 2005-09-15 08:25:33.000000000 +0000 +++ dcmwlm/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmwlm wlds wldsfs wlfsim wlmactmg) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmwlm) +# invoke macro to build and declare installation files +SET(SOURCES wlds wldsfs wlfsim wlmactmg) +BUILD_LIBRARY(dcmwlm ${SOURCES}) --- dcmjpls/libcharls/CMakeLists.txt.orig 2010-03-09 12:27:00.000000000 +0000 +++ dcmjpls/libcharls/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,8 +1,6 @@ # declare additional include directories INCLUDE_DIRECTORIES(${dcmjpls_SOURCE_DIR}/libcharls ${ofstd_SOURCE_DIR}/include ) -# create library from source files -ADD_LIBRARY(charls header intrface jpegls) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} charls) +# invoke macro to build and declare installation files +SET(SOURCES header intrface jpegls) +BUILD_LIBRARY(charls ${SOURCES}) --- dcmjpls/libsrc/CMakeLists.txt.orig 2009-10-07 13:18:54.000000000 +0000 +++ dcmjpls/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,8 +1,6 @@ # declare additional include directories INCLUDE_DIRECTORIES(${dcmjpls_SOURCE_DIR}/include ${ofstd_SOURCE_DIR}/include ${oflog_SOURCE_DIR}/include ${dcmdata_SOURCE_DIR}/include ${dcmimgle_SOURCE_DIR}/include ${dcmimage_SOURCE_DIR}/include ${dcmjpls_SOURCE_DIR}/libcharls ${ZLIB_INCDIR}) -# create library from source files -ADD_LIBRARY(dcmjpls djcparam djdecode djencode djrparam djcodecd djutils djcodece) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmjpls) +# invoke macro to build and declare installation files +SET(SOURCES djcparam djdecode djencode djrparam djcodecd djutils djcodece) +BUILD_LIBRARY(dcmjpls ${SOURCES}) --- dcmimage/libsrc/CMakeLists.txt.orig 2009-11-25 14:40:25.000000000 +0000 +++ dcmimage/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,5 @@ -# create library from source files -ADD_LIBRARY(dcmimage diargimg dicmyimg dicoimg dicoopx dicopx dihsvimg dilogger dipalimg dipipng dipitiff diqtctab diqtfs diqthash diqthitl diqtpbox diquant diregist dirgbimg diybrimg diyf2img diyp2img) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmimage) +# invoke macro to build and declare installation files +SET(SOURCES diargimg dicmyimg dicoimg dicoopx dicopx dihsvimg dilogger dipalimg dipipng dipitiff diqtctab diqtfs diqthash diqthitl diqtpbox diquant diregist dirgbimg diybrimg diyf2img diyp2img) +BUILD_LIBRARY(dcmimage ${SOURCES}) +TARGET_LINK_LIBRARIES(dcmimageShared ${LIBTIFF_LIBS} ${LIBPNG_LIBS}) +TARGET_LINK_LIBRARIES(dcmimage ${LIBTIFF_LIBS} ${LIBPNG_LIBS}) --- dcmnet/libsrc/CMakeLists.txt.orig 2009-12-16 17:02:57.000000000 +0000 +++ dcmnet/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmnet assoc cond dcasccff dcasccfg dccfenmp dccfpcmp dccfprmp dccfrsmp dccftsmp dccfuidh dcmlayer dcmtrans dcompat dimcancl dimcmd dimdump dimecho dimfind dimget dimmove dimse dimstore diutil dul dulconst dulextra dulfsm dulparse dulpres extneg lst dfindscu dcuserid scu scp) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmnet) +# invoke macro to build and declare installation files +SET(SOURCES assoc cond dcasccff dcasccfg dccfenmp dccfpcmp dccfprmp dccfrsmp dccftsmp dccfuidh dcmlayer dcmtrans dcompat dimcancl dimcmd dimdump dimecho dimfind dimget dimmove dimse dimstore diutil dul dulconst dulextra dulfsm dulparse dulpres extneg lst dfindscu dcuserid scu scp) +BUILD_LIBRARY(dcmnet ${SOURCES}) --- dcmimgle/libsrc/CMakeLists.txt.orig 2005-09-15 08:10:03.000000000 +0000 +++ dcmimgle/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ # create library from source files -ADD_LIBRARY(dcmimgle dcmimage dibaslut diciefn dicielut didislut didispfn didocu digsdfn digsdlut diimage diinpx diluptab dimo1img dimo2img dimoimg dimoimg3 dimoimg4 dimoimg5 dimomod dimoopx dimopx diovdat diovlay diovlimg diovpln diutils) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmimgle) +SET(SOURCES dcmimage dibaslut diciefn dicielut didislut didispfn didocu digsdfn digsdlut diimage diinpx diluptab dimo1img dimo2img dimoimg dimoimg3 dimoimg4 dimoimg5 dimomod dimoopx dimopx diovdat diovlay diovlimg diovpln diutils) +BUILD_LIBRARY(dcmimgle ${SOURCES}) --- dcmqrdb/libsrc/CMakeLists.txt.orig 2005-12-16 12:44:35.000000000 +0000 +++ dcmqrdb/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmqrdb dcmqrcbf dcmqrcbg dcmqrcbm dcmqrcbs dcmqrcnf dcmqrdbi dcmqrdbs dcmqropt dcmqrptb dcmqrsrv dcmqrtis) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmqrdb) +# invoke macro to build and declare installation files +SET(SOURCES dcmqrcbf dcmqrcbg dcmqrcbm dcmqrcbs dcmqrcnf dcmqrdbi dcmqrdbs dcmqropt dcmqrptb dcmqrsrv dcmqrtis) +BUILD_LIBRARY(dcmqrdb ${SOURCES}) --- ofstd/libsrc/CMakeLists.txt.orig 2009-12-21 15:06:18.000000000 +0000 +++ ofstd/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(ofstd ofcmdln ofconapp ofcond ofconfig ofconsol ofcrc32 ofdate ofdatime offname oflist ofstd ofstring ofthread oftime) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} ofstd) +# invoke macro to build and declare installation files +SET(SOURCES ofcmdln ofconapp ofcond ofconfig ofconsol ofcrc32 ofdate ofdatime offname oflist ofstd ofstring ofthread oftime) +BUILD_LIBRARY(ofstd ${SOURCES}) --- dcmsr/libsrc/CMakeLists.txt.orig 2010-11-05 11:06:57.000000000 +0000 +++ dcmsr/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(dcmsr dsrcitem dsrcodtn dsrcodvl dsrcomtn dsrcomvl dsrcontn dsrcsidl dsrdattn dsrdoc dsrdoctn dsrdoctr dsrdtitn dsrimgfr dsrimgtn dsrimgvl dsrnumtn dsrnumvl dsrpnmtn dsrreftn dsrscogr dsrsc3gr dsrscotn dsrsc3tn dsrscovl dsrsc3vl dsrsoprf dsrstrvl dsrtcodt dsrtcosp dsrtcotn dsrtcoto dsrtcovl dsrtextn dsrtimtn dsrtncsr dsrtree dsrtypes dsruidtn dsrwavch dsrwavtn dsrwavvl dsrxmlc dsrxmld dsriodcc dsrbascc dsrenhcc dsrcomcc dsrkeycc dsrmamcc dsrchecc dsrcolcc dsrprocc dsrxrdcc dsrspecc dsrmaccc dsrimpcc) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmsr) +# invoke macro to build and declare installation files +SET(SOURCES dsrcitem dsrcodtn dsrcodvl dsrcomtn dsrcomvl dsrcontn dsrcsidl dsrdattn dsrdoc dsrdoctn dsrdoctr dsrdtitn dsrimgfr dsrimgtn dsrimgvl dsrnumtn dsrnumvl dsrpnmtn dsrreftn dsrscogr dsrsc3gr dsrscotn dsrsc3tn dsrscovl dsrsc3vl dsrsoprf dsrstrvl dsrtcodt dsrtcosp dsrtcotn dsrtcoto dsrtcovl dsrtextn dsrtimtn dsrtncsr dsrtree dsrtypes dsruidtn dsrwavch dsrwavtn dsrwavvl dsrxmlc dsrxmld dsriodcc dsrbascc dsrenhcc dsrcomcc dsrkeycc dsrmamcc dsrchecc dsrcolcc dsrprocc dsrxrdcc dsrspecc dsrmaccc dsrimpcc) +BUILD_LIBRARY(dcmsr ${SOURCES}) --- dcmjpeg/libijg16/CMakeLists.txt.orig 2005-09-15 08:12:52.000000000 +0000 +++ dcmjpeg/libijg16/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(ijg16 jaricom jcapimin jcapistd jcarith jccoefct jccolor jcdctmgr jcdiffct jchuff jcinit jclhuff jclossls jclossy jcmainct jcmarker jcmaster jcodec jcomapi jcparam jcphuff jcpred jcprepct jcsample jcscale jcshuff jctrans jdapimin jdapistd jdarith jdatadst jdatasrc jdcoefct jdcolor jddctmgr jddiffct jdhuff jdinput jdlhuff jdlossls jdlossy jdmainct jdmarker jdmaster jdmerge jdphuff jdpostct jdpred jdsample jdscale jdshuff jdtrans jerror jfdctflt jfdctfst jfdctint jidctflt jidctfst jidctint jidctred jmemmgr jmemnobs jquant1 jquant2 jutils) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} ijg16) +# invoke macro to build and declare installation files +SET(SOURCES jaricom jcapimin jcapistd jcarith jccoefct jccolor jcdctmgr jcdiffct jchuff jcinit jclhuff jclossls jclossy jcmainct jcmarker jcmaster jcodec jcomapi jcparam jcphuff jcpred jcprepct jcsample jcscale jcshuff jctrans jdapimin jdapistd jdarith jdatadst jdatasrc jdcoefct jdcolor jddctmgr jddiffct jdhuff jdinput jdlhuff jdlossls jdlossy jdmainct jdmarker jdmaster jdmerge jdphuff jdpostct jdpred jdsample jdscale jdshuff jdtrans jerror jfdctflt jfdctfst jfdctint jidctflt jidctfst jidctint jidctred jmemmgr jmemnobs jquant1 jquant2 jutils) +BUILD_LIBRARY(ijg16 ${SOURCES}) --- dcmjpeg/libijg12/CMakeLists.txt.orig 2005-09-15 08:12:17.000000000 +0000 +++ dcmjpeg/libijg12/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(ijg12 jaricom jcapimin jcapistd jcarith jccoefct jccolor jcdctmgr jcdiffct jchuff jcinit jclhuff jclossls jclossy jcmainct jcmarker jcmaster jcodec jcomapi jcparam jcphuff jcpred jcprepct jcsample jcscale jcshuff jctrans jdapimin jdapistd jdarith jdatadst jdatasrc jdcoefct jdcolor jddctmgr jddiffct jdhuff jdinput jdlhuff jdlossls jdlossy jdmainct jdmarker jdmaster jdmerge jdphuff jdpostct jdpred jdsample jdscale jdshuff jdtrans jerror jfdctflt jfdctfst jfdctint jidctflt jidctfst jidctint jidctred jmemmgr jmemnobs jquant1 jquant2 jutils) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} ijg12) +# invoke macro to build and declare installation files +SET(SOURCES jaricom jcapimin jcapistd jcarith jccoefct jccolor jcdctmgr jcdiffct jchuff jcinit jclhuff jclossls jclossy jcmainct jcmarker jcmaster jcodec jcomapi jcparam jcphuff jcpred jcprepct jcsample jcscale jcshuff jctrans jdapimin jdapistd jdarith jdatadst jdatasrc jdcoefct jdcolor jddctmgr jddiffct jdhuff jdinput jdlhuff jdlossls jdlossy jdmainct jdmarker jdmaster jdmerge jdphuff jdpostct jdpred jdsample jdscale jdshuff jdtrans jerror jfdctflt jfdctfst jfdctint jidctflt jidctfst jidctint jidctred jmemmgr jmemnobs jquant1 jquant2 jutils) +BUILD_LIBRARY(ijg12 ${SOURCES}) --- dcmjpeg/libijg8/CMakeLists.txt.orig 2005-09-15 08:12:58.000000000 +0000 +++ dcmjpeg/libijg8/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,5 +1,3 @@ -# create library from source files -ADD_LIBRARY(ijg8 jaricom jcapimin jcapistd jcarith jccoefct jccolor jcdctmgr jcdiffct jchuff jcinit jclhuff jclossls jclossy jcmainct jcmarker jcmaster jcodec jcomapi jcparam jcphuff jcpred jcprepct jcsample jcscale jcshuff jctrans jdapimin jdapistd jdarith jdatadst jdatasrc jdcoefct jdcolor jddctmgr jddiffct jdhuff jdinput jdlhuff jdlossls jdlossy jdmainct jdmarker jdmaster jdmerge jdphuff jdpostct jdpred jdsample jdscale jdshuff jdtrans jerror jfdctflt jfdctfst jfdctint jidctflt jidctfst jidctint jidctred jmemmgr jmemnobs jquant1 jquant2 jutils) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} ijg8) +# invoke macro to build and declare installation files +SET(SOURCES jaricom jcapimin jcapistd jcarith jccoefct jccolor jcdctmgr jcdiffct jchuff jcinit jclhuff jclossls jclossy jcmainct jcmarker jcmaster jcodec jcomapi jcparam jcphuff jcpred jcprepct jcsample jcscale jcshuff jctrans jdapimin jdapistd jdarith jdatadst jdatasrc jdcoefct jdcolor jddctmgr jddiffct jdhuff jdinput jdlhuff jdlossls jdlossy jdmainct jdmarker jdmaster jdmerge jdphuff jdpostct jdpred jdsample jdscale jdshuff jdtrans jerror jfdctflt jfdctfst jfdctint jidctflt jidctfst jidctint jidctred jmemmgr jmemnobs jquant1 jquant2 jutils) +BUILD_LIBRARY(ijg8 ${SOURCES}) --- dcmjpeg/libsrc/CMakeLists.txt.orig 2009-10-07 12:44:33.000000000 +0000 +++ dcmjpeg/libsrc/CMakeLists.txt 2011-01-12 14:00:57.000000000 +0000 @@ -1,8 +1,6 @@ # declare additional include directories INCLUDE_DIRECTORIES(${dcmjpeg_SOURCE_DIR}/include ${ofstd_SOURCE_DIR}/include ${oflog_SOURCE_DIR}/include ${dcmdata_SOURCE_DIR}/include ${dcmimgle_SOURCE_DIR}/include ${dcmimage_SOURCE_DIR}/include ${dcmjpeg_SOURCE_DIR}/libijg8 ${dcmjpeg_SOURCE_DIR}/libijg12 ${dcmjpeg_SOURCE_DIR}/libijg16 ${ZLIB_INCDIR}) -# create library from source files -ADD_LIBRARY(dcmjpeg ddpiimpl dipijpeg djcodecd djcodece djcparam djdecbas djdecext djdeclol djdecode djdecpro djdecsps djdecsv1 djdijg12 djdijg8 djdijg16 djeijg12 djeijg8 djeijg16 djencbas djencext djenclol djencode djencpro djencsps djencsv1 djrplol djrploss djutils) - -# declare installation files -INSTALL_TARGETS(${INSTALL_LIBDIR} dcmjpeg) +# invoke macro to build and declare installation files +SET(SOURCES ddpiimpl dipijpeg djcodecd djcodece djcparam djdecbas djdecext djdeclol djdecode djdecpro djdecsps djdecsv1 djdijg12 djdijg8 djdijg16 djeijg12 djeijg8 djeijg16 djencbas djencext djenclol djencode djencpro djencsps djencsv1 djrplol djrploss djutils) +BUILD_LIBRARY(dcmjpeg ${SOURCES}) --- CMakeLists.txt.orig 2011-01-12 13:26:53.000000000 +0000 +++ CMakeLists.txt 2011-01-12 13:25:56.000000000 +0000 @@ -234,6 +234,13 @@ SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") #----------------------------------------------------------------------------- +# Module to build shared and static libraries +#----------------------------------------------------------------------------- + +INCLUDE(CMake/BuildLibrary.cmake) + + +#----------------------------------------------------------------------------- # Third party libraries #----------------------------------------------------------------------------- --- dcmdata/apps/CMakeLists.txt.orig 2010-11-25 11:41:57.000000000 +0000 +++ dcmdata/apps/CMakeLists.txt 2011-01-13 09:31:53.000000000 +0000 @@ -22,4 +22,4 @@ TARGET_LINK_LIBRARIES(dcmftest ofstd ${ZLIB_LIBS} ${THREAD_LIBS}) TARGET_LINK_LIBRARIES(xml2dcm ${TARGET_LINK_LIBRARIES} ${LIBXML_LIBS}) -TARGET_LINK_LIBRARIES(img2dcm ${TARGET_LINK_LIBRARIES} libi2d dcmdata) +TARGET_LINK_LIBRARIES(img2dcm ${TARGET_LINK_LIBRARIES} i2d dcmdata) --- dcmdata/tests/CMakeLists.txt.orig 2010-08-09 17:48:33.000000000 +0000 +++ dcmdata/tests/CMakeLists.txt 2011-01-13 09:32:33.000000000 +0000 @@ -11,9 +11,9 @@ TARGET_LINK_LIBRARIES(${PROGRAM} dcmdata oflog ofstd ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES}) ENDFOREACH(PROGRAM) -TARGET_LINK_LIBRARIES(i2dbmp libi2d dcmdata oflog ofstd ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES}) +TARGET_LINK_LIBRARIES(i2dbmp i2d dcmdata oflog ofstd ${ZLIB_LIBS} ${THREAD_LIBS} ${WIN32_STD_LIBRARIES}) # declare installation files #FOREACH(PROGRAM i2dbmp tstpath tstchval tstpread tvrdatim) # INSTALL_TARGETS(${INSTALL_BINDIR} ${PROGRAM}) -#ENDFOREACH(PROGRAM) \ No newline at end of file +#ENDFOREACH(PROGRAM)