improved cmake lists

This commit is contained in:
Robin Müller 2021-01-19 16:45:33 +01:00 committed by Robin Mueller
parent 35749decce
commit bcac9c65e4
3 changed files with 8 additions and 6 deletions

View File

@ -165,11 +165,13 @@ endif()
add_custom_command(
TARGET ${TARGET_NAME}
POST_BUILD
COMMAND echo "Build directory: ${CMAKE_BINARY_DIR}"
COMMAND echo "Target OSAL: ${OS_FSFW}"
COMMAND echo "Target Build Type: ${CMAKE_BUILD_TYPE}"
COMMAND echo "${TARGET_STRING}"
#COMMAND echo "Build directory: ${CMAKE_BINARY_DIR}"
#COMMAND echo "Target OSAL: ${OS_FSFW}"
#COMMAND echo "Target Build Type: ${CMAKE_BUILD_TYPE}"
#COMMAND echo "${TARGET_STRING}"
COMMAND ${CMAKE_SIZE} ${TARGET_NAME}${FILE_SUFFIX}
COMMENT "Build directory: ${CMAKE_BINARY_DIR}\nTarget OSAL: ${OS_FSFW}\n"
"Target Build Type: ${CMAKE_BUILD_TYPE}\n${TARGET_STRING}"
)
include (${CMAKE_SCRIPT_PATH}/BuildType.cmake)

View File

@ -55,8 +55,8 @@ target_compile_options(${TARGET_NAME} PRIVATE
add_custom_command(
TARGET ${TARGET_NAME}
POST_BUILD
COMMAND echo Generating binary file ${CMAKE_PROJECT_NAME}.bin..
COMMAND ${CMAKE_OBJCOPY} -O binary ${TARGET_NAME} ${TARGET_NAME}.bin
COMMENT "Generating binary file ${CMAKE_PROJECT_NAME}.bin.."
)
endfunction()

2
fsfw

@ -1 +1 @@
Subproject commit 8f83f7becd7ae9ee45a6bfccffdf1338993e426c
Subproject commit 50733e223adaf9fc95d9728c62a026ea6efac1d2