| |
| enable_language(ASM) |
| |
| add_library(springbok INTERFACE) |
| add_library(springbok_intrinsic STATIC) |
| target_sources(springbok_intrinsic |
| PRIVATE |
| crt0.S |
| irq_vector.S |
| springbok_gloss.cpp |
| springbok.cpp |
| ) |
| |
| target_include_directories(springbok_intrinsic PUBLIC include) |
| |
| target_link_libraries(springbok |
| INTERFACE |
| springbok_intrinsic |
| ) |
| |
| target_include_directories(springbok INTERFACE include) |
| |
| target_compile_options(springbok_intrinsic |
| PUBLIC |
| ${VEC_DEFAULT_COPTS} |
| ) |
| |
| target_link_options(springbok |
| INTERFACE |
| -Wl,--whole-archive ${CMAKE_CURRENT_BINARY_DIR}/libspringbok_intrinsic.a -Wl,--no-whole-archive |
| ) |