1 Star 0 Fork 0

rfwang07/oeAware-plugin-cfgo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 771 Bytes
一键复制 编辑 原始数据 按行查看 历史
rfwang07 提交于 2024-10-12 11:27 . fix profile bugs and improve usability
cmake_minimum_required(VERSION 3.15)
project(oeAware-plugin-cfgo)
set(CMAKE_CXX_STANDARD 11)
option(WITH_DEBUG "debug mode" OFF)
if (WITH_DEBUG)
message("-- Note: debug mode")
add_compile_options(-g)
endif()
add_compile_options(-std=c++17 -O2 -fPIC -Wall -Wextra -Wno-write-strings)
# libkperf
message("-- libkperf library path: ${LIB_KPERF_LIBPATH}")
message("-- libkperf include path: ${LIB_KPERF_INCPATH}")
set(tuner_src
src/plugin_tuner/instance.cpp
src/plugin_tuner/tuner_sysboost.cpp
src/utils.cpp
)
add_library(cfgo-tuner SHARED ${tuner_src})
include_directories(cfgo-tuner PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${LIB_KPERF_INCPATH}
)
target_link_libraries(cfgo-tuner kperf sym dl log4cplus boost_system boost_filesystem)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rfwang07/oeaware-plugin-cfgo.git
git@gitee.com:rfwang07/oeaware-plugin-cfgo.git
rfwang07
oeaware-plugin-cfgo
oeAware-plugin-cfgo
master

搜索帮助