1 Star 0 Fork 8

firstadream/ptcr

forked from openEuler/ptcr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Tiamo0 提交于 2021-12-10 15:42 . Support CRI client.
project(ptcr)
cmake_minimum_required(VERSION 2.8)
option(ENABLE_CRI_CLIENT "use cri client" ON)
if (ENABLE_CRI_CLIENT STREQUAL "ON")
set(CRI_CLIENT 1)
add_definitions(-DCRI_CLIENT)
endif()
add_definitions(-D_GNU_SOURCE)
set(CMAKE_CXX_COMPILER /usr/bin/g++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++11 -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -Wall -Werror")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(subst ${CMAKE_SOURCE_DIR}/,,$(abspath $<))\"'")
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src)
#install
set(install_conf_dir "/etc/ptcr/")
install(FILES configs/ptcr.yml
DESTINATION ${install_conf_dir} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE)
install(FILES configs/draw.py
DESTINATION ${install_conf_dir} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE)
# uninstall
if(NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/firstadream/ptcr.git
git@gitee.com:firstadream/ptcr.git
firstadream
ptcr
ptcr
master

搜索帮助