From b794fc9e4427f63aba624700af2e1df250aa41ef Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 14 Jul 2025 21:38:04 +0000 Subject: cmake: remove lefover main configuration --- CMakeLists.txt | 104 ++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 94 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f7d5a8..9ddb4ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,13 @@ set(CMAKE_CXX_STANDARD "20") set(CMAKE_CXX_STANDARD_REQUIRED YES) set(CMAKE_CXX_EXTENSIONS NO) +add_compile_options( + "$<$:-Wall>" + "$<$:-Wextra>" + "$<$:-Werror>" + "$<$:-pedantic-errors>" +) + #[============================================================================[ # Global Build System Configuration #]============================================================================] @@ -45,9 +52,9 @@ target_strip("kernel") target_generate_bootable_iso("kernel") -# #[============================================================================[ -# # Documentation -# #]============================================================================] +#[============================================================================[ +# Documentation +#]============================================================================] # find_package("Doxygen") @@ -90,94 +97,3 @@ target_generate_bootable_iso("kernel") # "${PROJECT_BINARY_DIR}/docs" # ) -# #[============================================================================[ -# # Global Compiler Configuration -# #]============================================================================] - -# add_compile_options( -# "$<$:-Wall>" -# "$<$:-Wextra>" -# "$<$:-Werror>" -# "$<$:-pedantic-errors>" -# ) - -# #[============================================================================[ -# # Global Libraries -# #]============================================================================] - -# add_subdirectory("libs/kstd" EXCLUDE_FROM_ALL SYSTEM) -# add_subdirectory("libs/multiboot2" EXCLUDE_FROM_ALL SYSTEM) - -# #[============================================================================[ -# # Global Directories -# #]============================================================================] - -# include_directories( -# "include" -# "arch/${CMAKE_SYSTEM_PROCESSOR}/include" -# ) - -# #[============================================================================[ -# # The Bootstrap Library -# #]============================================================================] - -# add_library("_boot" OBJECT) -# add_library("teachos::boot" ALIAS "_boot") - -# #[============================================================================[ -# # The Video Library -# #]============================================================================] - -# add_library("_video" OBJECT) -# add_library("teachos::video" ALIAS "_video") - -# #[============================================================================[ -# # THE Memory Library -# #]============================================================================] - -# add_library("_memory" OBJECT) -# add_library("teachos::memory" ALIAS "_memory") - -# #[============================================================================[ -# # The Exception handling Library -# #]============================================================================] - -# add_library("_exception" OBJECT) -# add_library("teachos::exception" ALIAS "_exception") - -# #[============================================================================[ -# # The Context switching Library -# #]============================================================================] - -# add_library("_context" OBJECT) -# add_library("teachos::context_switching" ALIAS "_context") - -# add_library("_interrupt_handling" OBJECT) -# add_library("teachos::interrupt_handling" ALIAS "_interrupt_handling") -# # https://forum.osdev.org/viewtopic.php?f=1&t=36712 -# # https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html#index-interrupt-function-attribute_002c-x86 -# target_compile_options("_interrupt_handling" PRIVATE "-mgeneral-regs-only") - -# #[============================================================================[ -# # The Kernel -# #]============================================================================] - -# add_executable("_kernel" -# "src/kernel/main.cpp" -# ) -# add_executable("teachos::kernel" ALIAS "_kernel") - -# target_link_libraries("_kernel" PRIVATE -# "teachos::boot" -# "teachos::video" -# "teachos::memory" -# "teachos::exception" -# "teachos::context_switching" -# "teachos::interrupt_handling" -# ) - -# #[============================================================================[ -# # Platform Specific Components -# #]============================================================================] - -# add_subdirectory("arch/${CMAKE_SYSTEM_PROCESSOR}") -- cgit v1.2.3