diff options
| -rw-r--r-- | CMakeLists.txt | 104 |
1 files changed, 10 insertions, 94 deletions
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( + "$<$<CXX_COMPILER_ID:GNU>:-Wall>" + "$<$<CXX_COMPILER_ID:GNU>:-Wextra>" + "$<$<CXX_COMPILER_ID:GNU>:-Werror>" + "$<$<CXX_COMPILER_ID:GNU>:-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( -# "$<$<CXX_COMPILER_ID:GNU>:-Wall>" -# "$<$<CXX_COMPILER_ID:GNU>:-Wextra>" -# "$<$<CXX_COMPILER_ID:GNU>:-Werror>" -# "$<$<CXX_COMPILER_ID:GNU>:-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}") |
