-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (32 loc) · 901 Bytes
/
CMakeLists.txt
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
37
38
project(CFS_CS C)
include_directories(fsw/src)
include_directories(fsw/mission_inc)
include_directories(fsw/platform_inc)
set(APP_SRC_FILES
fsw/src/cs_cmds.c
fsw/src/cs_table_processing.c
fsw/src/cs_app.c
fsw/src/cs_utils.c
fsw/src/cs_table_cmds.c
fsw/src/cs_app_cmds.c
fsw/src/cs_memory_cmds.c
fsw/src/cs_init.c
fsw/src/cs_eeprom_cmds.c
fsw/src/cs_compute.c
)
# Create the app module
add_cfe_app(cs ${APP_SRC_FILES})
set(APP_TABLE_FILES
fsw/tables/cs_apptbl.c
fsw/tables/cs_eepromtbl.c
fsw/tables/cs_memorytbl.c
fsw/tables/cs_tablestbl.c
)
add_cfe_tables(cs ${APP_TABLE_FILES})
# If UT is enabled, then add the tests from the subdirectory
# Note that this is an app, and therefore does not provide
# stub functions, as other entities would not typically make
# direct function calls into this application.
if(ENABLE_UNIT_TESTS)
add_subdirectory(unit-test)
endif()