diff Resources/CMake/DcmtkConfiguration.cmake @ 109:8c0a5666b05f

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Oct 2012 11:50:44 +0200
parents bb50d0eb4493
children b4f1191768eb
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Thu Oct 04 11:37:56 2012 +0200
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Thu Oct 04 11:50:44 2012 +0200
@@ -68,6 +68,9 @@
     -DHAVE_CONFIG_H=1
     )
 
+  if (NOT EXISTS "${DCMTK_DIR}/config/cfunix.h")
+    message(FATAL_ERROR "Please install libdcmtk1-dev")
+  endif()
 
   # Autodetection of the version of DCMTK
   file(STRINGS "${DCMTK_DIR}/config/cfunix.h" DCMTK_VERSION_NUMBER1