Luna/CMakeLists.txt

24 lines
533 B
CMake
Raw Normal View History

2022-11-13 09:09:09 +00:00
cmake_minimum_required(VERSION 3.8..3.22)
set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_CXX_COMPILER_WORKS 1)
set(CMAKE_CROSSCOMPILING true)
2022-12-03 16:18:25 +00:00
project(Luna LANGUAGES C CXX ASM_NASM VERSION 0.1.0)
2022-11-13 09:09:09 +00:00
set(LUNA_ROOT ${CMAKE_CURRENT_LIST_DIR})
set(CMAKE_C_COMPILER x86_64-luna-gcc)
set(CMAKE_CXX_COMPILER x86_64-luna-g++)
2022-11-15 18:10:32 +00:00
set(CMAKE_ASM_NASM_OBJECT_FORMAT elf64)
2022-11-13 09:09:09 +00:00
set(CMAKE_FIND_ROOT_PATH ${LUNA_ROOT}/toolchain/x86-64-luna)
set(ARCH $ENV{ARCH})
message(STATUS "Configuring Luna for ${ARCH}")
2022-11-19 14:43:09 +00:00
add_subdirectory(luna)
2022-11-13 09:09:09 +00:00
add_subdirectory(kernel)