GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SKRoot-linuxKernelRoot/CMakeLists.txt at master · kafoula/SKRoot-linuxKernelRoot Expand file tree/ Copy pathCMakeLists.txtMore file actions 35 lines (27 loc) · 985 Bytes / Copy pathCMakeLists.txtFile metadata and controls35 lines (27 loc) · 985 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 # 要求最低的 CMake 版本 cmake_minimum_required(VERSION 3.0) # 启用 CMP0048 策略 cmake_policy(SET CMP0048 NEW) # 设置项目名称和版本号 project(patch_kernel_root VERSION 1.0) # 要求 C++17 标准 set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) # 添加头文件目录 include_directories(include) # 添加所有源文件(排除测试文件) file(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/patch_kernel_root/*.cpp") list(FILTER SRC_FILES EXCLUDE REGEX "^Byte2HexTest.cpp$") # 添加可执行文件 add_executable(patch_kernel_root ${SRC_FILES}) # 添加测试文件 option(BUILD_TESTING "Build the tests" ON) if(BUILD_TESTING) enable_testing() file(GLOB TEST_SOURCES "tests/*.cpp") foreach(TEST_SOURCE ${TEST_SOURCES}) get_filename_component(TEST_NAME ${TEST_SOURCE} NAME_WE) add_executable(${TEST_NAME} ${TEST_SOURCE}) # target_link_libraries(${TEST_NAME} patch_kernel_root) endforeach() endif() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |