-
Notifications
You must be signed in to change notification settings - Fork 22
/
CMakeLists.txt
43 lines (36 loc) · 960 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
39
40
41
42
43
project(CFS_HS C)
set(APP_SRC_FILES
fsw/src/hs_monitors.c
fsw/src/hs_utils.c
fsw/src/hs_sysmon.c
fsw/src/hs_app.c
fsw/src/hs_cmds.c
)
if (CFE_EDS_ENABLED_BUILD)
list(APPEND APP_SRC_FILES
fsw/src/hs_eds_dispatch.c
)
else()
list(APPEND APP_SRC_FILES
fsw/src/hs_dispatch.c
)
endif()
# Create the app module
add_cfe_app(hs ${APP_SRC_FILES})
# This permits direct access to public headers in the fsw/inc directory
target_include_directories(hs PUBLIC fsw/inc)
add_cfe_app_dependency(hs iodriver)
set(APP_TABLE_FILES
fsw/tables/hs_mat.c
fsw/tables/hs_xct.c
fsw/tables/hs_amt.c
fsw/tables/hs_emt.c
)
add_cfe_tables(hs ${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()