| From cb011e7c8ad650bb0dd24930bf19da4a4620e30b Mon Sep 17 00:00:00 2001 |
| From: Gyorgy Szing <Gyorgy.Szing@arm.com> |
| Date: Mon, 5 Jul 2021 06:45:47 +0000 |
| Subject: [PATCH 2/2] Add install definition |
| |
| Add install() calls to define stable way to access build artifacts. |
| --- |
| CMakeLists.txt | 17 +++++++++++++++++ |
| 1 file changed, 17 insertions(+) |
| |
| diff --git a/CMakeLists.txt b/CMakeLists.txt |
| index 4e4756d..b26edce 100644 |
| --- a/CMakeLists.txt |
| +++ b/CMakeLists.txt |
| @@ -20,3 +20,20 @@ set(SOURCE |
| ) |
| |
| add_library(qcbor ${SOURCE}) |
| + |
| +install( |
| + TARGETS |
| + qcbor |
| + ARCHIVE DESTINATION |
| + lib |
| + PUBLIC_HEADER DESTINATION |
| + include/qcbor |
| + COMPONENT |
| + qcbor |
| +) |
| + |
| +install( |
| + DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/inc/ |
| + DESTINATION include |
| + COMPONENT qcbor |
| +) |
| -- |
| 2.17.1 |
| |