1 Star 0 Fork 1

Sakkkana/vt-learn-c

forked from asueeer/vt-learn-c 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 753 Bytes
一键复制 编辑 原始数据 按行查看 历史
asueeer 提交于 2023-07-23 14:40 . init code
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
project("Linux Kernel Module with CLion IDE support / CMake" VERSION 0.1.0 LANGUAGES C)
set(CMAKE_C_STANDARD 90)
set(CMAKE_C_STANDARD_REQUIRED ON)
# Find kernel headers
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(KernelHeaders REQUIRED)
# find MODULE_LICENSE("GPL"), MODULE_AUTHOR() etc.
# thanks to "merseyviking" from stack overflow
add_definitions(-D__KERNEL__ -DMODULE)
# this is needed in order for CLion IDE to provide syntax highlightning
# this is independent from the actual kernel object that is built
add_executable(vt_learn vt_learn.c)
# CLion IDE will find symbols from <linux/*>
target_include_directories("vt_learn" PRIVATE ${KERNELHEADERS_INCLUDE_DIRS})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Sakkkana/vt-learn-c.git
git@gitee.com:Sakkkana/vt-learn-c.git
Sakkkana
vt-learn-c
vt-learn-c
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385