mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
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
31 lines
814 B
CMake
31 lines
814 B
CMake
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
|
|
)
|
|
|
|
target_compile_options(server PRIVATE $<$<CONFIG:Debug>:
|
|
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
|
>)
|
|
|
|
target_include_directories(server
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
PRIVATE
|
|
${PROJECT_DIR}/external/websocketpp
|
|
)
|
|
|
|
target_link_libraries(server PRIVATE
|
|
UI
|
|
Timer
|
|
magic_enum::magic_enum
|
|
) |