cmake_minimum_required(VERSION 3.24)
project(Tanks)
set(CMAKE_CXX_STANDARD 17)
set(SFML_STATIC_LIBRARIES TRUE)
find_package(Boost 1.82 COMPONENTS signals2 REQUIRED CONFIG)
find_package(SFML COMPONENTS system window graphics audio network REQUIRED CONFIG)
add_subdirectory(src)
add_executable(Tanks)
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp *.h)
target_sources(Tanks PRIVATE ${SOURCE_FILES})
target_link_libraries(Tanks sfml-system sfml-window sfml-graphics sfml-audio Boost::signals2)
Could NOT find Boost (missing: Boost_INCLUDE_DIR system) (Required is at
least version "1.82")
cmake_minimum_required(VERSION 3.24)
project(Tanks)
set(CMAKE_CXX_STANDARD 17)
set(SFML_STATIC_LIBRARIES TRUE)
find_package(Boost 1.81.0 COMPONENTS system REQUIRED CONFIG)
find_package(SFML COMPONENTS system window graphics audio network REQUIRED CONFIG)
add_subdirectory(src)
add_executable(Tanks)
file(GLOB_RECURSE SOURCE_FILES CONFIGURE_DEPENDS *.cpp *.h)
target_sources(Tanks PRIVATE ${SOURCE_FILES})
target_link_libraries(Tanks sfml-system sfml-window sfml-graphics sfml-audio Boost::system)