aboutsummaryrefslogtreecommitdiff
path: root/McuSt10f269/CMakeLists.txt
blob: b67a62fa479cd32c61b151e823b0e774e9e313e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Path to firmware binary files for ST10F269
set (FwSt10f269Prefix ${FwPrefix})
set(FwSt10f269 
  ${FwSt10f269Prefix}/st10f269/Objects/st10f269.bin
  )

# Generate firmware header files
include_directories (${CMAKE_CURRENT_BINARY_DIR})

generate_headers_from_binaries (
  "$<TARGET_FILE:xd>"
  FwSt10f269
  "${FwSt10f269}"
  "${CMAKE_CURRENT_BINARY_DIR}"
)

add_library (McuSt10f269 STATIC
  McuSt10f269.cpp
  ${CMAKE_CURRENT_BINARY_DIR}/fw_st10f269.hpp
)

set_target_properties (McuSt10f269 PROPERTIES
  CXX_STANDARD 11
  CXX_STANDARD_REQUIRED ON
  CXX_EXTENSIONS OFF
)