2020-12-02 20:34:56 -06:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2020-11-22 23:25:22 -06:00
|
|
|
|
|
|
|
|
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|
|
|
|
message(FATAL_ERROR
|
|
|
|
|
"In-source builds not allowed.
|
|
|
|
|
Please make a new directory (called a build directory) and run CMake from there.
|
|
|
|
|
You may need to remove CMakeCache.txt."
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
2020-11-23 22:48:05 -06:00
|
|
|
if(TARGET tempest)
|
|
|
|
|
# Guard for use as transitive dependency
|
|
|
|
|
return()
|
|
|
|
|
endif()
|
|
|
|
|
|
2020-11-22 23:25:22 -06:00
|
|
|
# Project
|
|
|
|
|
project(tempest)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
2020-12-02 20:32:58 -06:00
|
|
|
include(lib/system/cmake/system.cmake)
|
2020-11-22 23:25:22 -06:00
|
|
|
|
2020-12-02 20:25:10 -06:00
|
|
|
add_subdirectory(lib)
|
2020-11-22 23:25:22 -06:00
|
|
|
add_subdirectory(tempest)
|
|
|
|
|
add_subdirectory(test)
|
2020-11-26 08:54:05 -06:00
|
|
|
add_subdirectory(vendor)
|