ngompa / rpms / cmake

Forked from rpms/cmake 4 years ago
Clone
949600
diff -up cmake-2.8.6-rc1/Modules/FindDCMTK.cmake.dcmtk cmake-2.8.6-rc1/Modules/FindDCMTK.cmake
949600
--- cmake-2.8.6-rc1/Modules/FindDCMTK.cmake.dcmtk	2011-08-26 10:51:46.000000000 -0600
949600
+++ cmake-2.8.6-rc1/Modules/FindDCMTK.cmake	2011-08-29 16:58:07.299550799 -0600
949600
@@ -30,6 +30,10 @@
949600
 # Written for VXL by Amitha Perera.
949600
 # Upgraded for GDCM by Mathieu Malaterre.
949600
 # Modified for EasyViz by Thomas Sondergaard.
949600
+# 
949600
+# Wed Jul 27 2011 Ankur Sinha <ankursinha AT fedoraproject DOT org> 
949600
+# - Add all dcmtk libs
949600
+# - Add usr/lib to paths
949600
 #
949600
 
949600
 if(NOT DCMTK_FOUND AND NOT DCMTK_DIR)
949600
@@ -44,20 +48,26 @@ endif()
949600
 
949600
 foreach(lib
949600
     dcmdata
949600
+    dcmdsig
949600
     dcmimage
949600
     dcmimgle
949600
     dcmjpeg
949600
+    dcmjpls
949600
     dcmnet
949600
     dcmpstat
949600
     dcmqrdb
949600
-    dcmsign
949600
     dcmsr
949600
     dcmtls
949600
+    dcmwlm
949600
     ijg12
949600
     ijg16
949600
     ijg8
949600
+    libi2d
949600
+    oflog
949600
     ofstd)
949600
 
949600
+
949600
+
949600
   find_library(DCMTK_${lib}_LIBRARY
949600
     ${lib}
949600
     PATHS
949600
@@ -66,7 +76,8 @@ foreach(lib
949600
     ${DCMTK_DIR}/${lib}/libsrc/Debug
949600
     ${DCMTK_DIR}/${lib}/Release
949600
     ${DCMTK_DIR}/${lib}/Debug
949600
-    ${DCMTK_DIR}/lib)
949600
+    ${DCMTK_DIR}/lib
949600
+    /usr/lib/dcmtk)
949600
 
949600
   mark_as_advanced(DCMTK_${lib}_LIBRARY)
949600
 
949600
@@ -82,13 +93,16 @@ set(DCMTK_dcmdata_TEST_HEADER dctypes.h)
949600
 set(DCMTK_dcmimage_TEST_HEADER dicoimg.h)
949600
 set(DCMTK_dcmimgle_TEST_HEADER dcmimage.h)
949600
 set(DCMTK_dcmjpeg_TEST_HEADER djdecode.h)
949600
+set(DCMTK_dcmjpls_TEST_HEADER djcodecd.h)
949600
 set(DCMTK_dcmnet_TEST_HEADER assoc.h)
949600
 set(DCMTK_dcmpstat_TEST_HEADER dcmpstat.h)
949600
 set(DCMTK_dcmqrdb_TEST_HEADER dcmqrdba.h)
949600
 set(DCMTK_dcmsign_TEST_HEADER sicert.h)
949600
 set(DCMTK_dcmsr_TEST_HEADER dsrtree.h)
949600
 set(DCMTK_dcmtls_TEST_HEADER tlslayer.h)
949600
+set(DCMTK_dcmwlm_TEST_HEADER wldsfs.h)
949600
 set(DCMTK_ofstd_TEST_HEADER ofstdinc.h)
949600
+set(DCMTK_oflog_TEST_HEADER oflog.h)
949600
 
949600
 foreach(dir
949600
     config
949600
@@ -96,16 +110,20 @@ foreach(dir
949600
     dcmimage
949600
     dcmimgle
949600
     dcmjpeg
949600
+    dcmjpls
949600
     dcmnet
949600
     dcmpstat
949600
     dcmqrdb
949600
     dcmsign
949600
     dcmsr
949600
     dcmtls
949600
+    dcmwlen
949600
+    oflog
949600
     ofstd)
949600
   find_path(DCMTK_${dir}_INCLUDE_DIR
949600
     ${DCMTK_${dir}_TEST_HEADER}
949600
     PATHS
949600
+    /usr/include/dcmtk
949600
     ${DCMTK_DIR}/${dir}/include
949600
     ${DCMTK_DIR}/${dir}
949600
     ${DCMTK_DIR}/include/${dir}