2023-06-06 16:56:19 -07:00
|
|
|
add_library(mammoth_lib STATIC
|
2023-06-07 09:37:16 -07:00
|
|
|
src/channel.cpp
|
2023-06-06 16:56:19 -07:00
|
|
|
src/debug.cpp
|
2023-06-07 00:04:53 -07:00
|
|
|
src/process.cpp
|
2023-06-06 16:56:19 -07:00
|
|
|
src/thread.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(mammoth_lib
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
|
|
|
|
|
|
target_link_libraries(mammoth_lib
|
|
|
|
zion_lib)
|
|
|
|
|
|
|
|
set(_COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -c -ffreestanding -fno-rtti -fno-exceptions -nostdlib -mabi=sysv -mgeneral-regs-only")
|
2023-06-07 09:37:16 -07:00
|
|
|
set(_LINK_FLAGS "-nostdlib")
|
2023-06-06 16:56:19 -07:00
|
|
|
|
|
|
|
set_target_properties(mammoth_lib PROPERTIES
|
2023-06-07 09:37:16 -07:00
|
|
|
COMPILE_FLAGS "${_COMPILE_FLAGS}"
|
|
|
|
LINK_FLAGS "${CMAKE_EXE_LINK_FLAGS} ${_LINK_FLAGS}"
|
|
|
|
)
|