forked from nasa/LC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arch_build.cmake
27 lines (25 loc) · 888 Bytes
/
arch_build.cmake
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
###########################################################
#
# LC App platform build setup
#
# This file is evaluated as part of the "prepare" stage
# and can be used to set up prerequisites for the build,
# such as generating header files
#
###########################################################
# The list of header files that control the app configuration
set(LC_PLATFORM_CONFIG_FILE_LIST
lc_internal_cfg.h
lc_msgids.h
lc_platform_cfg.h
)
# Create wrappers around the all the config header files
# This makes them individually overridable by the missions, without modifying
# the distribution default copies
foreach(LC_CFGFILE ${LC_PLATFORM_CONFIG_FILE_LIST})
set(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/config/default_${LC_CFGFILE}")
generate_config_includefile(
FILE_NAME "${LC_CFGFILE}"
FALLBACK_FILE "${DEFAULT_SOURCE}"
)
endforeach()