aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libdmtx/001-cmake-add-install-target.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdmtx/001-cmake-add-install-target.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libdmtx/001-cmake-add-install-target.patch')
-rw-r--r--vcpkg/ports/libdmtx/001-cmake-add-install-target.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/libdmtx/001-cmake-add-install-target.patch b/vcpkg/ports/libdmtx/001-cmake-add-install-target.patch
new file mode 100644
index 0000000..0602d1b
--- /dev/null
+++ b/vcpkg/ports/libdmtx/001-cmake-add-install-target.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6420a813c1..749bd8d680 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ project(DMTX VERSION 0.7.5 LANGUAGES C)
+
+ # DMTX library
+@@ -26,3 +26,10 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
+ add_subdirectory("test")
+ endif()
+ endif()
++
++# Add install rules
++install(TARGETS dmtx
++ RUNTIME DESTINATION bin
++ ARCHIVE DESTINATION lib
++ LIBRARY DESTINATION lib)
++install(FILES "dmtx.h" DESTINATION include)