bettola/CMakeLists.txt
Ritchie Cunningham bd6281c9bc feat(server): Implement server-side game state.
* Added Player class to represent players on the server.
* Added Game class to manage the overall game state.
* Server now adds new players to the game state when they connect.
* Server now updates the players position in the game state on receiving
  a PlayerPosMessage.
2025-09-13 17:10:55 +01:00

30 lines
770 B
CMake

cmake_minimum_required(VERSION 3.16)
project(bettola VERSION 0.1)
# Let's use C++17?
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# include directories..
include_directories(libbettola/include)
# Deps.
find_package(SDL3 REQUIRED)
find_package(GLEW REQUIRED)
find_package(OpenGL REQUIRED)
# Build our shared lib.
add_subdirectory(libbettola)
# Will need to clean build each time you add a new file though -.-
file(GLOB_RECURSE SOURCES "src/*.cpp")
add_executable(bettola ${SOURCES})
target_link_libraries(bettola PRIVATE bettola_lib SDL3::SDL3 GLEW::glew OpenGL::GL)
# Server executable.
file(GLOB_RECURSE SERVER_SOURCES "srv/*.cpp")
add_executable(bettola_server ${SERVER_SOURCES})
target_link_libraries(bettola_server PRIVATE bettola_lib)