summarylogtreecommitdiffstats
path: root/0002-install-redist-headers.patch
blob: 06fef407947697a7116aa0e1bc1b22ae5be81870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 457a0a53c49a656424c51898b1150d0753c39673 Mon Sep 17 00:00:00 2001
From: Christoph Haag <christoph.haag@collabora.com>
Date: Thu, 7 May 2020 14:53:54 +0200
Subject: [PATCH 2/2] install redist headers

---
 CMakeLists.txt | 5 +++++
 survive.pc.in  | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4ab40e9..78a76a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -236,6 +236,11 @@ INSTALL(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink survive
 
 install(DIRECTORY include/libsurvive DESTINATION include)
 
+file(GLOB REDIST_HEADERS
+  "redist/*.h"
+)
+install(FILES ${REDIST_HEADERS} DESTINATION include/libsurvive/redist)
+
 find_program(CTYPESGEN ctypesgen PATHS $ENV{HOME}/anaconda3/bin)
 if(CTYPESGEN)
 	get_property(include_directories DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
diff --git a/survive.pc.in b/survive.pc.in
index 5e3ce69..1a6a1d2 100644
--- a/survive.pc.in
+++ b/survive.pc.in
@@ -7,4 +7,4 @@ Name: @CMAKE_PROJECT_NAME@
 Description: Libsurvive
 Version: 0
 Libs: -L${libdir} -lsurvive @EXTRA_LIBS@
-Cflags: -I${includedir}
+Cflags: -I${includedir} -I${includedir}/redist
-- 
2.26.2