forked from nasa/bp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (39 loc) · 1.13 KB
/
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
39
40
41
42
43
44
45
46
47
48
##################################################################
#
# cFS Bundle Protocol Agent (BP) module CMake build recipe
#
##################################################################
project(CFS_BP C)
include_directories(fsw/custom)
include_directories(fsw/src)
set(APP_SRC_FILES
fsw/src/bp_app.c
fsw/src/bp_cmd.c
fsw/src/bp_flow.c
fsw/src/bp_cla_bundle_io.c
fsw/src/bp_storage.c
fsw/src/bp_global.c
fsw/custom/bp_semcfg.c
fsw/custom/bp_storecfg.c
fsw/custom/bp_tlmcfg.c
)
if (CFE_EDS_ENABLED_BUILD)
list(APPEND APP_SRC_FILES fsw/src/bp_eds_dispatch.c)
else(CFE_EDS_ENABLED_BUILD)
list(APPEND APP_SRC_FILES fsw/src/bp_dispatch.c)
endif(CFE_EDS_ENABLED_BUILD)
set(APP_TABLE_FILES
fsw/tables/bp_flowtable.c
)
# Create the app module
add_cfe_app(bp ${APP_SRC_FILES})
add_cfe_tables(bp ${APP_TABLE_FILES})
target_include_directories(bp PUBLIC fsw/inc)
# Indicate that this app depends on BPLIB
add_cfe_app_dependency(bp bplib iodriver)
if (ENABLE_UNIT_TESTS)
add_cfe_coverage_test(bp ALL
ut-coverage/coveragetest_bp_setup.c
${APP_SRC_FILES}
)
endif (ENABLE_UNIT_TESTS)