Add CMake definitions (#79)

This commit is contained in:
Rob Loach
2020-04-16 07:24:03 -04:00
committed by GitHub
parent 5191022a6b
commit 0fdacc87f6
5 changed files with 91 additions and 0 deletions

16
CMakeLists.txt Normal file
View File

@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.11)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
project(raygui C)
# Config options
option(BUILD_EXAMPLES "Build the examples." ON)
add_subdirectory(src)
if (${BUILD_EXAMPLES})
add_subdirectory(examples)
endif()
# TODO: Add automated testing.
# enable_testing()