forked from ut-issl/c2a-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
59 lines (50 loc) · 1.72 KB
/
Copy pathCMakeLists.txt
File metadata and controls
59 lines (50 loc) · 1.72 KB
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
54
55
56
57
58
59
cmake_minimum_required(VERSION 3.13)
project(C2A_CORE)
# user config
option(USE_ALL_C2A_CORE_APPS "use C2A-core all Applications" ON)
option(USE_ALL_C2A_CORE_LIB "use C2A-core all Library" ON)
option(USE_32BIT_COMPILER "use 32bit compiler" OFF)
set(C2A_CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(C2A_SRCS
c2a_core_main.c
Drivers/Super/driver_super.c
Drivers/Super/driver_super_issl_format.c
# System/AnomalyLogger/anomaly_logger.c # deprecated. 使いたい場合は, user 側でビルドターゲットに入れる.
System/ApplicationManager/app_info.c
System/ApplicationManager/app_manager.c
System/EventManager/event_manager.c
System/EventManager/event_logger.c
System/EventManager/event_handler.c
System/ModeManager/mode_manager.c
System/TaskManager/task_dispatcher.c
System/TimeManager/obc_time.c
System/TimeManager/time_manager.c
System/WatchdogTimer/watchdog_timer.c
TlmCmd/block_command_loader.c
TlmCmd/block_command_table.c
TlmCmd/block_command_executor.c
TlmCmd/command_analyze.c
TlmCmd/command_dispatcher.c
TlmCmd/common_cmd_packet_util.c
TlmCmd/packet_handler.c
TlmCmd/packet_list_util.c
TlmCmd/packet_list.c
TlmCmd/telemetry_frame.c
TlmCmd/telemetry_generator.c
TlmCmd/Ccsds/cmd_space_packet.c
TlmCmd/Ccsds/space_packet.c
TlmCmd/Ccsds/tlm_space_packet.c
)
if(BUILD_C2A_AS_CXX)
set_source_files_properties(${C2A_SRCS} PROPERTIES LANGUAGE CXX) # C++
endif()
add_library(${PROJECT_NAME} STATIC ${C2A_SRCS})
if(USE_ALL_C2A_CORE_APPS)
add_subdirectory(Applications)
target_link_libraries(${PROJECT_NAME} C2A_CORE_APPS)
endif()
if(USE_ALL_C2A_CORE_LIB)
add_subdirectory(Library)
target_link_libraries(${PROJECT_NAME} C2A_CORE_LIB)
endif()
include(common.cmake)