mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
message parser
Add magic enum Add function to parse commands Add function to parse events Add function to feed json input to there corresponding parse functions and return there result
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
add_executable(server)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(magic_enum URL https://github.com/Neargye/magic_enum/releases/download/v0.9.5/magic_enum-v0.9.5.tar.gz)
|
||||
FetchContent_MakeAvailable(magic_enum)
|
||||
|
||||
target_sources(server PRIVATE
|
||||
${CMAKE_CURRENT_LIST_DIR}/main.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/message_parser.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/simulator_base.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/simulators.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/websocket.cpp
|
||||
@@ -20,4 +27,5 @@ target_include_directories(server
|
||||
target_link_libraries(server PRIVATE
|
||||
UI
|
||||
Timer
|
||||
magic_enum::magic_enum
|
||||
)
|
||||
Reference in New Issue
Block a user