29 lines
545 B
CMake
29 lines
545 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(SHM LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(src)
|
|
add_subdirectory(tests)
|
|
|
|
add_executable(${PROJECT_NAME} main.cpp)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(json
|
|
GIT_REPOSITORY https://github.com/nlohmann/json
|
|
GIT_TAG v3.11.3
|
|
)
|
|
FetchContent_MakeAvailable(json)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
Battle
|
|
Ship
|
|
Store
|
|
Core
|
|
Player
|
|
nlohmann_json::nlohmann_json
|
|
)
|