forked from nasa/sample_app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (18 loc) · 744 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (18 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 2.6.4)
project(CFE_SAMPLE_APP C)
include_directories(fsw/mission_inc)
include_directories(fsw/platform_inc)
# Include the public API from sample_lib to demonstrate how
# to call library-provided functions
include_directories(${sample_lib_MISSION_DIR}/fsw/public_inc)
# Create the app module
add_cfe_app(sample_app fsw/src/sample_app.c)
# Add table
add_cfe_tables(sampleTable fsw/src/sample_table.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)