~aleteoryx/muditaos

ref: 43eae4086459fc261483a9d3cc968170b0e0d9ed muditaos/cmake/modules/ConfigureVersionJson.cmake -rw-r--r-- 434 bytes
43eae408 — Mateusz Piesta [BH-1519] Shared alarm model instance 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/cmake/modules")
include(Version)

if (NOT ${BOOTLOADER_FILE} STREQUAL "")
    file(MD5 ${BOOTLOADER_FILE} BOOTLOADER_MD5SUM)
endif()
if (NOT ${BOOT_FILE} STREQUAL "")
    file(MD5 ${BOOT_FILE} BOOT_MD5SUM)
endif()
if (NOT ${UPDATER_FILE} STREQUAL "")
    file(MD5 ${UPDATER_FILE} UPDATER_MD5SUM)
endif()

message("Configuring version.json file")
configure_file(${SRC_FILE} ${DST_FILE} @ONLY)