Blame SOURCES/0065-cmake-Install-header-files-without-globbing.patch

bab77a
From 0b34ccb9a3b26cd1c5267c6a5c15e9fa1a665adb Mon Sep 17 00:00:00 2001
bab77a
From: Andreas Schneider <asn@cryptomilk.org>
bab77a
Date: Wed, 2 Jan 2019 10:59:30 +0100
bab77a
Subject: [PATCH 65/70] cmake: Install header files without globbing
bab77a
bab77a
Fixes #627
bab77a
bab77a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
bab77a
---
bab77a
 CMakeLists.txt               |  1 +
bab77a
 include/CMakeLists.txt       |  1 +
bab77a
 include/exiv2/CMakeLists.txt | 51 ++++++++++++++++++++++++++++++++++++
bab77a
 src/CMakeLists.txt           |  4 ---
bab77a
 4 files changed, 53 insertions(+), 4 deletions(-)
bab77a
 create mode 100644 include/CMakeLists.txt
bab77a
 create mode 100644 include/exiv2/CMakeLists.txt
bab77a
bab77a
diff --git a/CMakeLists.txt b/CMakeLists.txt
bab77a
index 183cdd2e..ce4d2202 100644
bab77a
--- a/CMakeLists.txt
bab77a
+++ b/CMakeLists.txt
bab77a
@@ -76,6 +76,7 @@ endif()
bab77a
 
bab77a
 include(cmake/compilerFlagsExiv2.cmake REQUIRED)
bab77a
 
bab77a
+add_subdirectory( include )
bab77a
 add_subdirectory( src )
bab77a
 
bab77a
 if( EXIV2_BUILD_UNIT_TESTS )
bab77a
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt
bab77a
new file mode 100644
bab77a
index 00000000..01b43a6c
bab77a
--- /dev/null
bab77a
+++ b/include/CMakeLists.txt
bab77a
@@ -0,0 +1 @@
bab77a
+add_subdirectory(exiv2)
bab77a
diff --git a/include/exiv2/CMakeLists.txt b/include/exiv2/CMakeLists.txt
bab77a
new file mode 100644
bab77a
index 00000000..60080f1c
bab77a
--- /dev/null
bab77a
+++ b/include/exiv2/CMakeLists.txt
bab77a
@@ -0,0 +1,51 @@
bab77a
+install(FILES
bab77a
+            asfvideo.hpp
bab77a
+            basicio.hpp
bab77a
+            bigtiffimage.hpp
bab77a
+            bmpimage.hpp
bab77a
+            config.h
bab77a
+            convert.hpp
bab77a
+            cr2image.hpp
bab77a
+            crwimage.hpp
bab77a
+            datasets.hpp
bab77a
+            easyaccess.hpp
bab77a
+            epsimage.hpp
bab77a
+            error.hpp
bab77a
+            exif.hpp
bab77a
+            exiv2.hpp
bab77a
+            futils.hpp
bab77a
+            gifimage.hpp
bab77a
+            http.hpp
bab77a
+            image.hpp
bab77a
+            ini.hpp
bab77a
+            iptc.hpp
bab77a
+            jp2image.hpp
bab77a
+            jpgimage.hpp
bab77a
+            matroskavideo.hpp
bab77a
+            metadatum.hpp
bab77a
+            mrwimage.hpp
bab77a
+            orfimage.hpp
bab77a
+            pgfimage.hpp
bab77a
+            pngimage.hpp
bab77a
+            preview.hpp
bab77a
+            properties.hpp
bab77a
+            psdimage.hpp
bab77a
+            quicktimevideo.hpp
bab77a
+            rafimage.hpp
bab77a
+            riffvideo.hpp
bab77a
+            rw2image.hpp
bab77a
+            rwlock.hpp
bab77a
+            slice.hpp
bab77a
+            ssh.hpp
bab77a
+            tags.hpp
bab77a
+            tgaimage.hpp
bab77a
+            tiffimage.hpp
bab77a
+            types.hpp
bab77a
+            utilsvideo.hpp
bab77a
+            value.hpp
bab77a
+            version.hpp
bab77a
+            webpimage.hpp
bab77a
+            xmp_exiv2.hpp
bab77a
+            xmpsidecar.hpp
bab77a
+        DESTINATION
bab77a
+            ${CMAKE_INSTALL_INCLUDEDIR}/exiv2)
bab77a
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
bab77a
index adb285b1..04d8a2a0 100644
bab77a
--- a/src/CMakeLists.txt
bab77a
+++ b/src/CMakeLists.txt
bab77a
@@ -225,10 +225,6 @@ install(TARGETS exiv2lib EXPORT exiv2Config
bab77a
     ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
bab77a
 )
bab77a
 
bab77a
-install(DIRECTORY ../include/exiv2
bab77a
-    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
bab77a
-    FILES_MATCHING PATTERN "*.h*")
bab77a
-
bab77a
 install(FILES
bab77a
     ${CMAKE_BINARY_DIR}/exv_conf.h
bab77a
     ${CMAKE_BINARY_DIR}/exiv2lib_export.h
bab77a
-- 
bab77a
2.17.2
bab77a