aboutsummaryrefslogtreecommitdiff
path: root/ports/opencascade/install-include-dir.patch
blob: 85ab582bd346f837071cfd2e63de0e3063ef0049 (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
From 32c4bdd88555309752215c53842d438cb51bcb62 Mon Sep 17 00:00:00 2001
From: bloess <josua.bloess@uni-bayreuth.de>
Date: Mon, 15 Feb 2021 16:26:36 +0100
Subject: [PATCH] install include-dir

---
 CMakeLists.txt | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 100d613..464f95a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1171,6 +1171,14 @@ foreach (OCCT_MODULE ${OCCT_MODULES})
 endforeach()
 set (OCCT_MODULES_ENABLED ${OCCT_MODULES_ENABLED_SORTED})
 
+foreach (OCCT_LIBRARY ${OCCT_LIBRARIES})
+	target_include_directories(
+		${OCCT_LIBRARY} 
+		INTERFACE
+		$<INSTALL_INTERFACE:include>)
+
+endforeach()
+
 # Add all targets to the build-tree export set
 export (TARGETS ${OCCT_LIBRARIES} FILE "${CMAKE_BINARY_DIR}/OpenCASCADETargets.cmake")
 
-- 
2.14.3.windows.1