aboutsummaryrefslogtreecommitdiff
path: root/McuSt10f269/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'McuSt10f269/CMakeLists.txt')
-rwxr-xr-xMcuSt10f269/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/McuSt10f269/CMakeLists.txt b/McuSt10f269/CMakeLists.txt
new file mode 100755
index 0000000..b67a62f
--- /dev/null
+++ b/McuSt10f269/CMakeLists.txt
@@ -0,0 +1,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
+)