-
Notifications
You must be signed in to change notification settings - Fork 42
/
CMakeLists.txt
36 lines (30 loc) · 946 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
project(CFE_SAMPLE_APP C)
set(APP_SRC_FILES
fsw/src/sample_app.c
fsw/src/sample_app_cmds.c
fsw/src/sample_app_utils.c
)
if (CFE_EDS_ENABLED_BUILD)
list(APPEND APP_SRC_FILES
fsw/src/sample_app_eds_dispatch.c
)
else()
list(APPEND APP_SRC_FILES
fsw/src/sample_app_dispatch.c
)
endif()
# Create the app module
add_cfe_app(sample_app ${APP_SRC_FILES})
target_include_directories(sample_app PUBLIC fsw/inc)
# Include the public API from sample_lib to demonstrate how
# to call library-provided functions
add_cfe_app_dependency(sample_app sample_lib)
# Add table
add_cfe_tables(sample_app fsw/tables/sample_app_tbl.c)
# 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 (ENABLE_UNIT_TESTS)