25 lines
		
	
	
		
			508 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			508 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
 | 
						|
  GIT_TAG release-3.0.0
 | 
						|
)
 | 
						|
FetchContent_MakeAvailable(SDL_net)
 | 
						|
 | 
						|
add_subdirectory(common)
 | 
						|
add_subdirectory(client)
 | 
						|
add_subdirectory(server)
 |