aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-14 21:38:04 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-14 21:38:04 +0000
commitb794fc9e4427f63aba624700af2e1df250aa41ef (patch)
tree9be250cb369bc3784ecc06aba933aa880b4d625f /CMakeLists.txt
parent9b12522f37c3f8704e8f8ca8736689dbbf30ce8b (diff)
downloadteachos-b794fc9e4427f63aba624700af2e1df250aa41ef.tar.xz
teachos-b794fc9e4427f63aba624700af2e1df250aa41ef.zip
cmake: remove lefover main configuration
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt104
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}")