bettola/CMakeLists.txt
Ritchie Cunningham 6e935918a3 feat(server) Added client/server for online play
Note: This is fucking broken! it's too early in the morning. Fix
tomorrow.
2025-09-13 05:22:30 +01:00

29 lines
719 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.
add_executable(bettola_server srv/main.cpp)
target_link_libraries(bettola_server PRIVATE bettola_lib)