~aleteoryx/muditaos

ref: 78ab32ccbb08468f29cbe554da4a50cb0c1f3a65 muditaos/image/CMakeLists.txt -rw-r--r-- 793 bytes
78ab32cc — Lefucjusz [BH-2103][BH-2104] Add What's New entry for custom quotations 6 months 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
include(Assets)
include(Utils)

set(SYSTEM_DEST_DIR ${SYSROOT_PATH}/system_a)
set(USER_DEST_DIR ${SYSROOT_PATH}/user)

set(ASSETS_DEPENDENCIES "json-common-target")
list(APPEND ASSETS_DEPENDENCIES "create_product_databases")

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}
    SYSTEM_DEST_DIR ${SYSTEM_DEST_DIR}
    USER_DEST_DIR ${USER_DEST_DIR}
    DEVEL ${WITH_DEVELOPMENT_FEATURES}
    DEPENDS ${ASSETS_DEPENDENCIES}
)