20 lines
No EOL
508 B
CMake
20 lines
No EOL
508 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(ArtifactEngine LANGUAGES CXX)
|
|
|
|
# MARK: - Options
|
|
|
|
option(BUILD_SHARED_LIBS "Build libraries as SHARED instead of STATIC" OFF)
|
|
option(BUILD_EXAMPLES "Build example/test applications" ON )
|
|
option(BUILD_TESTS "Build unit tests" OFF)
|
|
|
|
# MARK: - Libraries
|
|
|
|
add_subdirectory(Shared)
|
|
add_subdirectory(Client)
|
|
add_subdirectory(Server)
|
|
|
|
# MARK: - Test Game
|
|
|
|
if(BUILD_EXAMPLES)
|
|
add_subdirectory(Examples/TestGame)
|
|
endif() |