blob: 54bdb8bd5b35aa34253d3daca59448d90acd2688 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#[============================================================================[
# 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_options("kernel" PRIVATE
"$<$<CXX_COMPILER_ID:GNU>:-Wall>"
"$<$<CXX_COMPILER_ID:GNU>:-Wextra>"
"$<$<CXX_COMPILER_ID:GNU>:-Werror>"
"$<$<CXX_COMPILER_ID:GNU>:-pedantic-errors>"
)
#[============================================================================[
# Apply the platform dependent settings to the kernel image.
#]============================================================================]
add_subdirectory("arch/${CMAKE_SYSTEM_PROCESSOR}")
|