mirror of
https://github.com/thelsing/knx.git
synced 2025-10-12 11:15:54 +02:00
27 lines
1.0 KiB
CMake
27 lines
1.0 KiB
CMake
##
|
|
## Author: Johannes Bruder
|
|
## License: See LICENSE.TXT file included in the project
|
|
##
|
|
##
|
|
## CC13xx target specific CMake file
|
|
##
|
|
|
|
if(NOT DEFINED LINKER_SCRIPT)
|
|
message(FATAL_ERROR "No linker script defined")
|
|
endif(NOT DEFINED LINKER_SCRIPT)
|
|
message("Linker script: ${LINKER_SCRIPT}")
|
|
|
|
#---------------------------------------------------------------------------------------
|
|
# Set target specific compiler/linker flags
|
|
#---------------------------------------------------------------------------------------
|
|
|
|
# Object build Options
|
|
set(OBJECT_GEN_FLAGS "-mcpu=cortex-m3")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OBJECT_GEN_FLAGS}" CACHE INTERNAL "C Compiler options")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OBJECT_GEN_FLAGS}" CACHE INTERNAL "C++ Compiler options")
|
|
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} ${OBJECT_GEN_FLAGS}" CACHE INTERNAL "ASM Compiler options")
|
|
|
|
# Linker flags
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -eresetISR -T${LINKER_SCRIPT} -nostartfiles" CACHE INTERNAL "Linker options")
|