-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (41 loc) · 1.04 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
cmake_minimum_required(VERSION 3.18)
project(fri_emulator)
add_subdirectory(fri) # TODO: replace with local install i.e. find package or similar?
add_library(${PROJECT_NAME}
src/commanding_message_decoder.cpp
src/monitoring_message_encoder.cpp
src/udp_server.cpp
src/state_machine.cpp
src/virtual_hardware.cpp
)
target_include_directories(${PROJECT_NAME}
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
FRIClient::FRIClient # system specific states
FRIClient::nanopb # encoding / decoding
FRIClient::protobuf # FRI message definitions
)
add_executable(
fri_emulator_test
main.cpp
)
target_link_libraries(
fri_emulator_test
PRIVATE
FRIClient::FRIClient
FRIClient::nanopb
FRIClient::protobuf
${PROJECT_NAME}
)
add_executable(encode
encode.cpp
)
target_link_libraries(encode
FRIClient::FRIClient
FRIClient::nanopb
FRIClient::protobuf
)