blob: fcff3b092f8469f0a3e6ee157f406d8543288cb9 [file] [log] [blame]
Julian Hall827d4472021-05-11 11:31:37 +01001From 908eee07cd6b27fd69ac7dc969950e6c5b36c14d Mon Sep 17 00:00:00 2001
2From: Gyorgy Szing <Gyorgy.Szing@arm.com>
3Date: Mon, 5 Jul 2021 00:33:59 +0000
4Subject: [PATCH 1/1] Add install definition
5+
6+Add install() calls to define stable way to access build artifacts.
7
8Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
9---
10 CMakeLists.txt | 13 +++++++++++++
11 1 file changed, 13 insertions(+)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
14index 0b01d8b..343b325 100644
15--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
17@@ -31,4 +31,17 @@ else()
18
19 endif()
20
21+file(GLOB_RECURSE _t_cose_headers LIST_DIRECTORIES false "${CMAKE_CURRENT_SOURCE_DIR}/inc/*.h")
22+set_property(TARGET t_cose APPEND PROPERTY PUBLIC_HEADER ${_t_cose_headers})
23+
24+install(
25+ TARGETS
26+ t_cose
27+ ARCHIVE DESTINATION
28+ lib
29+ PUBLIC_HEADER DESTINATION
30+ include/t_cose
31+ COMPONENT
32+ t_cose
33+)
34
35--
362.17.1
37