- use C++11 STL features instead of custom code
[packages/dcmtk.git] / dcmtk-3.6.1-0003-Create-FindCharLS.cmake.patch
CommitLineData
291a797f
AM
1From a86cb1e1d622951d8345f0283837b20d8df707d0 Mon Sep 17 00:00:00 2001
2From: Mario Ceresa <mario.ceresa@upf.edu>
3Date: Mon, 15 Dec 2014 12:28:55 +0100
4Subject: [PATCH] Create FindCharLS.cmake
5
6---
7 CMake/FindCharLS.cmake | 34 ++++++++++++++++++++++++++++++++++
8 1 file changed, 34 insertions(+)
9 create mode 100644 CMake/FindCharLS.cmake
10
11diff --git a/CMake/FindCharLS.cmake b/CMake/FindCharLS.cmake
12new file mode 100644
13index 0000000..eaa45b7
14--- /dev/null
15+++ b/CMake/FindCharLS.cmake
16@@ -0,0 +1,34 @@
17+FIND_PATH(CHARLS_INCLUDE_DIR CharLS/interface.h
18+/usr/local/include
19+/usr/include
20+)
21+
22+FIND_LIBRARY(CHARLS_LIBRARY
23+ NAMES CharLS
24+ PATHS /usr/lib /usr/local/lib /usr/lib64 /usr/local/lib64
25+ )
26+
27+
28+IF (CHARLS_LIBRARY AND CHARLS_INCLUDE_DIR)
29+ SET(CHARLS_LIBRARIES ${CHARLS_LIBRARY})
30+ SET(CHARLS_INCLUDE_DIRS ${CHARLS_INCLUDE_DIR})
31+ SET(CHARLS_FOUND "YES")
32+ELSE (CHARLS_LIBRARY AND CHARLS_INCLUDE_DIR)
33+ SET(CHARLS_FOUND "NO")
34+ENDIF (CHARLS_LIBRARY AND CHARLS_INCLUDE_DIR)
35+
36+
37+IF (CHARLS_FOUND)
38+ IF (NOT CHARLS_FIND_QUIETLY)
39+ MESSAGE(STATUS "Found CHARLS: ${CHARLS_LIBRARIES}")
40+ ENDIF (NOT CHARLS_FIND_QUIETLY)
41+ELSE (CHARLS_FOUND)
42+ IF (CHARLS_FIND_REQUIRED)
43+ MESSAGE(FATAL_ERROR "Could not find CHARLS library")
44+ ENDIF (CHARLS_FIND_REQUIRED)
45+ENDIF (CHARLS_FOUND)
46+
47+MARK_AS_ADVANCED(
48+ CHARLS_LIBRARIES
49+ CHARLS_INCLUDE_DIR
50+ )
51--
521.9.3
53
This page took 0.090212 seconds and 4 git commands to generate.