Luna/libos/CMakeLists.txt

30 lines
777 B
CMake
Raw Normal View History

# The C++ standard library for OS operations (userspace only), so most things that have to do with calling the kernel, or functions that the kernel has no use for.
file(GLOB HEADERS include/os/*.h)
set(SOURCES
${HEADERS}
src/ArgumentParser.cpp
src/File.cpp
2023-04-13 16:33:04 +00:00
src/FileSystem.cpp
2023-04-18 16:16:24 +00:00
src/Process.cpp
2023-04-28 19:15:41 +00:00
src/Directory.cpp
2023-04-13 15:04:59 +00:00
src/Main.cpp
src/Path.cpp
2023-05-26 16:22:50 +00:00
src/Mode.cpp
2023-07-08 16:28:04 +00:00
src/Prompt.cpp
2023-08-14 08:45:00 +00:00
src/Security.cpp
src/LocalServer.cpp
2023-08-07 20:44:41 +00:00
src/LocalClient.cpp
2023-08-14 16:14:35 +00:00
src/IPC.cpp
)
add_library(os ${SOURCES})
target_compile_options(os PRIVATE ${COMMON_FLAGS})
target_include_directories(os PUBLIC include/)
target_include_directories(os PUBLIC ${LUNA_BASE}/usr/include)
if("${LUNA_ARCH}" MATCHES "x86_64")
target_compile_definitions(os PUBLIC ARCH_X86_64)
endif()