21 lines
473 B
CMake
21 lines
473 B
CMake
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
|
|
|
|
project(ecs)
|
|
|
|
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
|
|
message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there.")
|
|
endif()
|
|
|
|
include(cmake/CPM.cmake)
|
|
include(cmake/tools.cmake)
|
|
|
|
CPMAddPackage(
|
|
NAME PackageProject.cmake
|
|
GITHUB_REPOSITORY TheLartians/PackageProject.cmake
|
|
VERSION 1.3
|
|
)
|
|
|
|
|
|
add_subdirectory(io)
|
|
add_subdirectory(test)
|