From ae26e083b4471f1404e4f25eee71e4f71e9b13f0 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sun, 20 May 2018 19:59:18 +0200 Subject: CMake: Add default build type if none specified Release, unless we are in a Git repo, then it's Debug. --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 $) endif() -include("../cmake/utils.cmake") +include(utils) if(USE_AUDIO) file(GLOB stb_vorbis external/stb_vorbis.c) -- cgit v1.2.3