#[============================================================================[ # Configure the generic settings for the kernel image. # # All the settings (e.g. include paths, linker flags, etc.) applied in this # directly, are expected to be platform independent. #]============================================================================] add_executable("kernel") target_compile_features("kernel" PRIVATE "cxx_std_20" ) target_compile_options("kernel" PRIVATE "$<$:-Wall>" "$<$:-Wextra>" "$<$:-Werror>" "$<$:-pedantic-errors>" ) set_target_properties("kernel" PROPERTIES CXX_EXTENSIONS OFF CXX_STANDARD_REQUIRED YES ) #[============================================================================[ # Apply the platform dependent settings to the kernel image. #]============================================================================] add_subdirectory("arch/${CMAKE_SYSTEM_PROCESSOR}")