Skip to content

Commit

Permalink
feat(setup): add basis CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Milerius committed Sep 9, 2019
1 parent a138906 commit 87f088e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "Prevented in-tree build. Please create a build directory outside of the source code and call cmake from there")
endif ()

cmake_minimum_required(VERSION 3.14)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

file(STRINGS "VERSION.md" VERSION_NB)

project(antara-gaming-sdk
VERSION ${VERSION_NB}
DESCRIPTION "Blockchain gaming sdk"
LANGUAGES CXX)

if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
message(FATAL_ERROR "Only Clang is supported (minimum LLVM 8.0)")
endif()

add_subdirectory(modules)
1 change: 1 addition & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
Empty file added modules/CMakeLists.txt
Empty file.

0 comments on commit 87f088e

Please sign in to comment.