| cmake_minimum_required(VERSION 3.10) |
| |
| project(vector_vset_tests) |
| |
| |
| set(TARGET vector_vset_tests) |
| set(ELF ${TARGET}.elf) |
| |
| add_executable(${ELF} vector_vset_tests.c) |
| |
| target_include_directories(${ELF} PUBLIC include) |
| |
| set_target_properties(${ELF} PROPERTIES LINK_DEPENDS "${LINKER_SCRIPT}") |
| |
| target_link_libraries(${ELF} vector_tests) |
| |
| set_target_properties( |
| ${ELF} |
| PROPERTIES |
| LINK_FLAGS |
| "-T${LINKER_SCRIPT} \ |
| -specs=nano.specs \ |
| -Wl,--gc-sections \ |
| -Wl,--print-memory-usage \ |
| -Wl,-Map=${PROJECT_NAME}.map") |
| |
| target_compile_options(${ELF} PUBLIC |
| -nostdlib |
| -ffreestanding |
| -ffunction-sections |
| -Wall |
| -Werror |
| -O3 |
| -g) |
| |