ngompa / rpms / cmake

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