mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
chore: initial commit
This commit is contained in:
commit
69a95ae405
28 changed files with 18574 additions and 0 deletions
25
CMakeLists.txt
Normal file
25
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
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 common)
|
||||
# Guard for use as transitive dependency
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Project
|
||||
project(common)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
include(lib/system/cmake/system.cmake)
|
||||
|
||||
add_subdirectory(lib)
|
||||
add_subdirectory(common)
|
||||
add_subdirectory(test)
|
||||
Loading…
Add table
Add a link
Reference in a new issue