代码拉取完成,页面将自动刷新
同步操作将从 openEuler/ptcr 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。