Add source-aware UART log replay
This commit is contained in:
@@ -22,6 +22,8 @@ add_executable(location_plotter
|
||||
src/MapWidget.h
|
||||
src/SerialReader.cpp
|
||||
src/SerialReader.h
|
||||
src/UartReplay.cpp
|
||||
src/UartReplay.h
|
||||
src/RinexNavigation.cpp
|
||||
src/RinexNavigation.h
|
||||
src/SatelliteData.h
|
||||
@@ -30,6 +32,9 @@ add_executable(location_plotter
|
||||
)
|
||||
|
||||
target_link_libraries(location_plotter PRIVATE Qt6::Core Qt6::Widgets Qt6::Network ZLIB::ZLIB)
|
||||
target_compile_definitions(location_plotter PRIVATE
|
||||
LOCATION_PLOTTER_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
set_target_properties(location_plotter PROPERTIES
|
||||
@@ -79,12 +84,17 @@ add_executable(location_main_window_tests
|
||||
src/GlobeWidget.h
|
||||
src/SerialReader.cpp
|
||||
src/SerialReader.h
|
||||
src/UartReplay.cpp
|
||||
src/UartReplay.h
|
||||
src/RinexNavigation.cpp
|
||||
src/RinexNavigation.h
|
||||
src/SatelliteData.h
|
||||
src/TelemetryPoint.h
|
||||
)
|
||||
target_link_libraries(location_main_window_tests PRIVATE Qt6::Core Qt6::Widgets Qt6::Network ZLIB::ZLIB)
|
||||
target_compile_definitions(location_main_window_tests PRIVATE
|
||||
LOCATION_PLOTTER_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
)
|
||||
target_compile_options(location_main_window_tests PRIVATE
|
||||
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-UNDEBUG>
|
||||
)
|
||||
@@ -99,6 +109,20 @@ add_test(NAME location_main_window_tests COMMAND location_main_window_tests)
|
||||
set_tests_properties(location_main_window_tests PROPERTIES
|
||||
ENVIRONMENT "QT_QPA_PLATFORM=offscreen;XDG_CACHE_HOME=/tmp/location-plotter-test-cache")
|
||||
|
||||
add_executable(location_uart_replay_tests
|
||||
tests/uart_replay_tests.cpp
|
||||
src/UartReplay.cpp
|
||||
src/UartReplay.h
|
||||
src/LocationParser.cpp
|
||||
src/LocationParser.h
|
||||
src/TelemetryPoint.h
|
||||
)
|
||||
target_link_libraries(location_uart_replay_tests PRIVATE Qt6::Core)
|
||||
target_compile_options(location_uart_replay_tests PRIVATE
|
||||
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-UNDEBUG>
|
||||
)
|
||||
add_test(NAME location_uart_replay_tests COMMAND location_uart_replay_tests)
|
||||
|
||||
install(TARGETS location_plotter
|
||||
BUNDLE DESTINATION .
|
||||
RUNTIME DESTINATION bin
|
||||
|
||||
Reference in New Issue
Block a user