~aleteoryx/muditaos

ref: dd26b295758539790019bc7ad27c68f6ec0a14e7 muditaos/image/CMakeLists.txt -rw-r--r-- 856 bytes
dd26b295 — Dawid Wojtas [BH-1415] Front light intensity for pre-wake up and main alarm 3 years ago
                                                                                
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
27
28
29
30
31
32
33
34
35
36
include(Assets)
include(Utils)

set(SYSROOT ${CMAKE_BINARY_DIR}/sysroot)
set(ASSETS_DEST_DIR ${SYSROOT}/sys)

set(ASSETS_DEPENDENCIES "json-common-target")

if (${ASSETS_TYPE} STREQUAL "Proprietary")
    list(APPEND ASSETS_DEPENDENCIES "json-proprietary-target")
endif()

if (${ASSETS_TYPE} STREQUAL "Community")
    list(APPEND ASSETS_DEPENDENCIES "json-community-target")
endif()

if (${PROJECT_TARGET} STREQUAL "TARGET_RT1051")
    list(APPEND ASSETS_DEPENDENCIES "json-rt1051-target")
endif()

add_assets_target(
    TARGET assets
    SOURCE_DIR ${ASSETS_SOURCE_DIR}
    DEST_DIR ${ASSETS_DEST_DIR}
    DEVEL ${WITH_DEVELOPMENT_FEATURES}
    DEPENDS
        ${ASSETS_DEPENDENCIES}
)

multicomp_install(
    FILES
        ${ASSETS_DEST_DIR}/.boot.json
        ${ASSETS_DEST_DIR}/.boot.json.crc32
    DESTINATION ./
    COMPONENTS Standalone Update
)