-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path0002-install-required-files.patch
More file actions
63 lines (59 loc) · 2.81 KB
/
Copy path0002-install-required-files.patch
File metadata and controls
63 lines (59 loc) · 2.81 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
From e7b701237581835e1267c30b3f5ef9cbd5b447c5 Mon Sep 17 00:00:00 2001
From: Joel Winarske <joel.winarske@gmail.com>
Date: Sun, 26 Jan 2025 10:42:12 -0800
Subject: [PATCH 2/5] install required files
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
---
libs/imageio/CMakeLists.txt | 6 ++++++
third_party/libpng/tnt/CMakeLists.txt | 2 ++
third_party/stb/tnt/CMakeLists.txt | 1 +
third_party/tinyexr/tnt/CMakeLists.txt | 5 ++++-
4 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/libs/imageio/CMakeLists.txt b/libs/imageio/CMakeLists.txt
index 47544655b..7169da462 100644
--- a/libs/imageio/CMakeLists.txt
+++ b/libs/imageio/CMakeLists.txt
@@ -44,3 +44,9 @@ endif()
if (NOT MSVC)
target_compile_options(${TARGET} PRIVATE -Wno-deprecated-register)
endif()
+
+# ==================================================================================================
+# Installation
+# ==================================================================================================
+install(TARGETS ${TARGET} ARCHIVE DESTINATION lib/${DIST_DIR})
+install(DIRECTORY ${PUBLIC_HDR_DIR}/imageio DESTINATION include/filament)
diff --git a/third_party/libpng/tnt/CMakeLists.txt b/third_party/libpng/tnt/CMakeLists.txt
index cd5a033f5..4925a0474 100644
--- a/third_party/libpng/tnt/CMakeLists.txt
+++ b/third_party/libpng/tnt/CMakeLists.txt
@@ -57,3 +57,5 @@ target_link_libraries(${TARGET} PUBLIC z)
# specify where the public headers of this library are
target_include_directories(${TARGET} PUBLIC ${PUBLIC_HDR_DIR})
set_target_properties(${TARGET} PROPERTIES FOLDER ThirdParty)
+
+install(TARGETS ${TARGET} ARCHIVE DESTINATION lib/${DIST_DIR})
diff --git a/third_party/stb/tnt/CMakeLists.txt b/third_party/stb/tnt/CMakeLists.txt
index 0c25061c0..563a2604d 100644
--- a/third_party/stb/tnt/CMakeLists.txt
+++ b/third_party/stb/tnt/CMakeLists.txt
@@ -15,3 +15,4 @@ target_include_directories(${TARGET} PUBLIC ${PUBLIC_HDR_DIR})
set_target_properties(${TARGET} PROPERTIES FOLDER ThirdParty)
install(TARGETS stb ARCHIVE DESTINATION lib/${DIST_DIR})
+install(FILES ${PUBLIC_HDRS} DESTINATION include/filament)
diff --git a/third_party/tinyexr/tnt/CMakeLists.txt b/third_party/tinyexr/tnt/CMakeLists.txt
index 20955b77b..ffe7cdfe1 100644
--- a/third_party/tinyexr/tnt/CMakeLists.txt
+++ b/third_party/tinyexr/tnt/CMakeLists.txt
@@ -20,4 +20,7 @@ include_directories(${PUBLIC_HDR_DIR})
add_library(${TARGET} STATIC ${PUBLIC_HDRS} ${SRCS})
target_include_directories (${TARGET} PUBLIC ${PUBLIC_HDR_DIR})
target_link_libraries(${TARGET} LINK_PUBLIC z)
-set_target_properties(${TARGET} PROPERTIES FOLDER ThirdParty)
\ No newline at end of file
+set_target_properties(${TARGET} PROPERTIES FOLDER ThirdParty)
+
+install(FILES ${PUBLIC_HDRS} DESTINATION include/filament)
+install(TARGETS ${TARGET} ARCHIVE DESTINATION lib/${DIST_DIR})
--
2.48.1