secgateway/CMakeLists.txt

24 lines
1.0 KiB
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cmake_minimum_required(VERSION 3.10)
project(drivers) # 工程名字,随你怎么叫都行
#include(kernel_config.cmake) # 一堆的 add_definitions(xxx),就不细说了
#add_definitions(-D__KERNEL__=1)
aux_source_directory(./Product/user/object_manager DIR_SRCS)
aux_source_directory(./libs/src/lighttpd-1.4.51/src DIR_SRCS)
set(MY_ANDROID_ROOT_DIR "./kernel/linux-4.14.83") # 定义一个变量,方便后面使用
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -nostdinc") # C 编译器设置
add_executable(drivers ${DIR_SRCS}) # dummy target没有这个的话external libraries就是空的
# 弄一个main.c糊弄糊弄Clion
#include_directories(
# "${MY_ANDROID_ROOT_DIR}/kernel/include"
# "${MY_ANDROID_ROOT_DIR}/kernel/arch/arm/include"
# "${MY_ANDROID_ROOT_DIR}/kernel/arch/arm64/include"
# "${MY_ANDROID_ROOT_DIR}/out/target/product/msm8952_64/obj/KERNEL_OBJ/usr/include"
# # 下面这些随便你自己写吧,想看哪些代码就写哪些
# "${MY_ANDROID_ROOT_DIR}/kernel/mm"
#)