mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
cmake server client
remove redundant sources
This commit is contained in:
@@ -9,14 +9,10 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
file(GLOB_RECURSE SOURCES "*.[hc]pp")
|
||||
file(GLOB_RECURSE UI_SOURCES "*.ui")
|
||||
file(GLOB_RECURSE SIM_SOURCES "simulators/*.[hc]pp")
|
||||
file(GLOB_RECURSE SIM_UI "simulators/*.ui")
|
||||
|
||||
set(PROJECT_SOURCES
|
||||
${SOURCES}
|
||||
${UI_SOURCES}
|
||||
${SIM_SOURCES}
|
||||
${SIM_UI}
|
||||
)
|
||||
|
||||
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
|
||||
|
||||
+2
-12
@@ -9,20 +9,10 @@ find_package(Qt6 REQUIRED COMPONENTS Core WebSockets SerialBus)
|
||||
qt_standard_project_setup()
|
||||
qt_add_executable(server)
|
||||
|
||||
file(GLOB_RECURSE SIM_SOURCES "simulators/*.[hc]pp")
|
||||
file(GLOB_RECURSE CAN_SOURCES "CAN/*.[hc]pp")
|
||||
file(GLOB_RECURSE SOURCES "*.[hc]pp")
|
||||
|
||||
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}/simulator_base.hpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/simulators.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/simulators.hpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/websocket.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/websocket.hpp
|
||||
${SIM_SOURCES}
|
||||
${CAN_SOURCES}
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
target_compile_options(server PRIVATE $<$<CONFIG:Debug>:
|
||||
|
||||
Reference in New Issue
Block a user