mirror of
https://github.com/thunderbrewhq/system.git
synced 2026-02-03 16:39:07 +00:00
21 lines
471 B
CMake
21 lines
471 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
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()
|
|
|
|
if(TARGET system)
|
|
# Guard for use as transitive dependency
|
|
return()
|
|
endif()
|
|
|
|
# Project
|
|
project(system)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
add_subdirectory(system)
|