Starting and testing cmake as a toolchain
This commit is contained in:
13
kernel/CMakeLists.txt
Normal file
13
kernel/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
project(Kernel LANGUAGES C CXX ASM)
|
||||
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
boot.s
|
||||
)
|
||||
|
||||
add_executable(kernel.elf ${SOURCES})
|
||||
target_link_libraries(kernel.elf PRIVATE CoreLib)
|
||||
set(LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/link.ld)
|
||||
target_link_options(kernel.elf PRIVATE "-T${LINKER_SCRIPT}")
|
||||
|
||||
Reference in New Issue
Block a user