cmake_minimum_required(VERSION 3.15) project(robotCommand) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED True) #set(CMAKE_VERBOSE_MAKEFILE ON) set(gcc_like_cxx "$") set(msvc_cxx "$") add_executable(robotCommand src/main.cpp src/robot.cpp src/jsonrpctcpclient.cpp src/PosTracker.cpp src/PosHistory.cpp ) find_package(jsoncpp REQUIRED) find_package(SFML COMPONENTS graphics window system REQUIRED) target_link_libraries(robotCommand jsoncpp_lib sfml-graphics sfml-window sfml-system) if (WIN32) target_link_libraries(robotCommand ws2_32) endif () target_compile_options(robotCommand PRIVATE "$<${gcc_like_cxx}:-Wall;-Wextra;-Wshadow;-Wformat=2;-Wunused>" "$<${msvc_cxx}:-W3>" ) #add_compile_definitions(JSONRPC_DEBUG) if (WIN32) add_compile_definitions(_WIN32_WINNT=0x0501) endif ()