Skip to content

Commit 16556e0

Browse files
Add map and hex files
1 parent bb434e6 commit 16556e0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

postmaster/bootloader/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ add_executable(postmaster.bootloader)
44
emil_build_for(postmaster.bootloader TARGET_MCU_VENDOR st PREREQUISITE_CONFIG Release RelWithDebInfo MinSizeRel)
55
emil_install(postmaster.bootloader EXPORT postmasterPostmasterTargets DESTINATION bin)
66

7+
get_target_property(exclude postmaster.bootloader EXCLUDE_FROM_ALL)
8+
if (NOT ${exclude})
9+
install(
10+
FILES
11+
$<TARGET_FILE_DIR:postmaster.bootloader>/$<TARGET_FILE_BASE_NAME:postmaster.bootloader>.map
12+
$<TARGET_FILE_DIR:postmaster.bootloader>/$<TARGET_FILE_BASE_NAME:postmaster.bootloader>.hex
13+
TYPE BIN
14+
)
15+
endif()
16+
717
target_sources(postmaster.bootloader PRIVATE
818
Main.cpp
919
)

postmaster/postmaster_stm32f407/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ add_executable(postmaster.postmaster_stm32f407)
22
emil_build_for(postmaster.postmaster_stm32f407 TARGET_MCU stm32f407 PREREQUISITE_CONFIG Release RelWithDebInfo MinSizeRel)
33
emil_install(postmaster.postmaster_stm32f407 EXPORT postmasterPostmasterTargets DESTINATION bin)
44

5+
get_target_property(exclude postmaster.postmaster_stm32f407 EXCLUDE_FROM_ALL)
6+
if (NOT ${exclude})
7+
install(
8+
FILES
9+
$<TARGET_FILE_DIR:postmaster.postmaster_stm32f407>/$<TARGET_FILE_BASE_NAME:postmaster.postmaster_stm32f407>.map
10+
$<TARGET_FILE_DIR:postmaster.postmaster_stm32f407>/$<TARGET_FILE_BASE_NAME:postmaster.postmaster_stm32f407>.hex
11+
TYPE BIN
12+
)
13+
endif()
14+
515
target_include_directories(postmaster.postmaster_stm32f407 PUBLIC
616
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../..>"
717
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"

0 commit comments

Comments
 (0)