aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2018-05-20 19:59:18 +0200
committerAhmad Fatoum <ahmad@a3f.at>2018-05-21 01:08:28 +0200
commitae26e083b4471f1404e4f25eee71e4f71e9b13f0 (patch)
tree69e52b04cc4390609f64889c811f046479243ba9 /src
parent20ddc6a2bb4cbd39c460d8fa5d1f7175095bba2f (diff)
downloadraylib-ae26e083b4471f1404e4f25eee71e4f71e9b13f0.tar.gz
raylib-ae26e083b4471f1404e4f25eee71e4f71e9b13f0.zip
CMake: Add default build type if none specified
Release, unless we are in a Git repo, then it's Debug.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4b32de10..f6f867e2 100755
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,12 +1,14 @@
# Setup the project and settings
project(raylib)
include(GNUInstallDirs)
+set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
set(PROJECT_VERSION 2.0.0)
set(API_VERSION 2)
set(RAYLIB raylib) # Name of the generated library
include("CMakeOptions.txt")
+include(BuildType)
configure_file(config.h.in ${CMAKE_BINARY_DIR}/cmake/config.h)
include_directories(${CMAKE_BINARY_DIR})
@@ -39,7 +41,7 @@ if(NOT glfw3_FOUND)
list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
endif()
-include("../cmake/utils.cmake")
+include(utils)
if(USE_AUDIO)
file(GLOB stb_vorbis external/stb_vorbis.c)