forked from nasa/sample_app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (24 loc) · 836 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
project(FPGA_CTRL C)
include_directories(fsw/mission_inc)
include_directories(fsw/platform_inc)
# Create the app module
add_cfe_app(
fpga_ctrl
fsw/src/fpga_ctrl.c
fsw/src/fpga_ctrl_interrupts.h
fsw/src/fpga_ctrl_aes.h
fsw/src/fpga_ctrl_load_bitstream.h
)
# Include the public API from sample_lib to demonstrate how
# to call library-provided functions
# add_cfe_app_dependency(fpga_ctrl sample_lib)
add_cfe_app_dependency(fpga_ctrl mmio_lib)
# Add table
add_cfe_tables(fpgaCtrlTable fsw/tables/fpga_ctrl_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)