Skip to content

Commit

Permalink
Refactor CMake configuration for oRatioServer and update submodule re…
Browse files Browse the repository at this point in the history
…ferences
  • Loading branch information
riccardodebenedictis committed Jan 14, 2025
1 parent 36163c4 commit d83dd01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,15 @@ if(BUILD_GUI_SERVER)
set(BUILD_LISTENERS ON CACHE BOOL "Builds oRatio listeners" FORCE)

add_executable(oRatioServer src/server/main.cpp src/server/solver_server.cpp)
target_compile_features(oRatioServer PUBLIC cxx_std_17)
target_include_directories(oRatioServer PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/server>)

add_dependencies(oRatioServer oRatioLib ratioNet)
target_link_libraries(oRatioServer PRIVATE oRatioLib ratioNet)
target_include_directories(oRatioServer PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/server>)

if(MSVC)
target_compile_options(oRatioServer PRIVATE /W4)
else()
target_compile_options(oRatioServer PRIVATE -Wall -Wextra -Wpedantic -fsanitize=undefined)
target_link_options(oRatioServer PRIVATE -fsanitize=undefined)
if (ENABLE_COVERAGE)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(oRatioServer PRIVATE --coverage)
Expand Down
2 changes: 1 addition & 1 deletion extern/rationet
2 changes: 1 addition & 1 deletion extern/riddle
Submodule riddle updated 1 files
+1 −1 extern/json

0 comments on commit d83dd01

Please sign in to comment.