-
Notifications
You must be signed in to change notification settings - Fork 207
/
CMakeLists.txt
54 lines (45 loc) · 1.71 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
49
50
51
52
53
##################################################################
#
# cFE Global/Public Application Interface
#
##################################################################
# NOTE: This module is shared headers and configuration only, it has has no
# source files of its own. It just defines the intefaces betwen the CFE core
# modules and other private headers that define CFE internal shared data objects.
add_library(core_api INTERFACE)
# The fsw/inc here defines global/shared structures and interfaces
target_include_directories(core_api INTERFACE fsw/inc)
# The list of modules that comprise the "CFE app interface"
# This is the set of APIs that applications and libraries may call directly
# The include path to all of them is
set(core_api_MODULES es evs fs msg resourceid sb tbl time osal psp)
# Propagate any INTERFACE-level include dirs and compile defintions from
# the modules into this abstract interface target
foreach(MOD ${core_api_MODULES})
target_include_directories(core_api INTERFACE
$<TARGET_PROPERTY:${MOD},INTERFACE_INCLUDE_DIRECTORIES>
)
target_compile_definitions(core_api INTERFACE
$<TARGET_PROPERTY:${MOD},INTERFACE_COMPILE_DEFINITIONS>
)
endforeach(MOD ${core_api_MODULES})
# Add unit test coverage subdirectory
# This provides stubs for functions declared in fsw/inc
if (ENABLE_UNIT_TESTS)
add_subdirectory(ut-stubs)
endif (ENABLE_UNIT_TESTS)
cfs_app_check_intf(${DEP}
cfe_resourceid.h
cfe_endian.h
cfe_msg.h
cfe_error.h
cfe.h
cfe_version.h
cfe_es_extern_typedefs.h
cfe_evs_extern_typedefs.h
cfe_fs_extern_typedefs.h
cfe_sb_extern_typedefs.h
cfe_tbl_extern_typedefs.h
cfe_time_extern_typedefs.h
cfe_tbl_filedef.h
)