30 lines
		
	
	
		
			848 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			848 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
cmake_minimum_required(VERSION 3.16)
 | 
						|
project(bettola CXX)
 | 
						|
 | 
						|
set(CMAKE_CXX_STANDARD 17)
 | 
						|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
 | 
						|
 | 
						|
include(FetchContent)
 | 
						|
FetchContent_Declare(
 | 
						|
  sol2
 | 
						|
  GIT_REPOSITORY https://github.com/ThePhD/sol2.git
 | 
						|
  GIT_TAG v3.3.1
 | 
						|
)
 | 
						|
FetchContent_MakeAvailable(sol2)
 | 
						|
 | 
						|
FetchContent_Declare(
 | 
						|
  SDL_net
 | 
						|
  GIT_REPOSITORY https://github.com/libsdl-org/SDL_net.git
 | 
						|
  # NOTE: Using 'main' because FetchContent in this environment appears to be
 | 
						|
  # doing a shallow clone, which fails when checking out a specific tag/commit.
 | 
						|
  # This is not ideal for reproducibility, but unblocks development.
 | 
						|
  # If SDL_net breaks their main branch, you'll have to compile it from source:
 | 
						|
  # https://github.com/libsdl-org/SDL_net
 | 
						|
  GIT_TAG main
 | 
						|
)
 | 
						|
FetchContent_MakeAvailable(SDL_net)
 | 
						|
 | 
						|
add_subdirectory(common)
 | 
						|
add_subdirectory(client)
 | 
						|
add_subdirectory(server)
 |