加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0060-add-make-install-support-to-CMakeList.patch 926 Bytes
一键复制 编辑 原始数据 按行查看 历史
刘波 提交于 2022-08-01 10:57 . etmem: sync source repo submission
From 31731fdc3fbd8afd8daeba2138344568cbd6a238 Mon Sep 17 00:00:00 2001
From: liubo <liubo254@huawei.com>
Date: Tue, 21 Dec 2021 21:16:52 +0800
Subject: [PATCH 10/33] add make install support to CMakeList
---
etmem/CMakeLists.txt | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/etmem/CMakeLists.txt b/etmem/CMakeLists.txt
index b5eb83e..9fba791 100644
--- a/etmem/CMakeLists.txt
+++ b/etmem/CMakeLists.txt
@@ -123,3 +123,12 @@ if( ${ARCHITECTURE} STREQUAL "aarch64" )
else()
target_compile_options(etmemd_scan PRIVATE -march=core-avx-i -m64)
endif()
+
+install(TARGETS etmem etmemd
+ PERMISSIONS OWNER_READ OWNER_EXECUTE
+ RUNTIME DESTINATION /usr/bin)
+
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/conf/
+ DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
+ FILE_PERMISSIONS OWNER_READ OWNER_WRITE
+ DESTINATION /etc/etmem)
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化