File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ add_executable(postmaster.bootloader)
44emil_build_for(postmaster.bootloader TARGET_MCU_VENDOR st PREREQUISITE_CONFIG Release RelWithDebInfo MinSizeRel)
55emil_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+
717target_sources (postmaster.bootloader PRIVATE
818 Main.cpp
919)
Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ add_executable(postmaster.postmaster_stm32f407)
22emil_build_for(postmaster.postmaster_stm32f407 TARGET_MCU stm32f407 PREREQUISITE_CONFIG Release RelWithDebInfo MinSizeRel)
33emil_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+
515target_include_directories (postmaster.postmaster_stm32f407 PUBLIC
616 "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR} /../..>"
717 "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >"
You can’t perform that action at this time.
0 commit comments