From 49f1dad6b9deeb769e384ae547fca9f64b90bf79 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 19 Aug 2022 13:38:09 +0300 Subject: Moved to raylib 4.2.0. Renamed some directory functions to raylib 4.2.0 conventions. Removed GenMeshBinormals and GetRayCollisionModel. Sound and music pan. --- CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a765a77..c1cc5ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,16 +6,17 @@ project( ReiLua ) set( CMAKE_C_STANDARD 99 ) # Requires C99 standard -if( DEBUG ) - message( Debug ) - set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -ggdb -std=c99 -Wall -pedantic -fno-common" ) -else() - message( Release ) - set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -std=c99 -Wall -pedantic -fno-common" ) +option( SHARED "Build using dynamic libraries." off ) + +if( NOT CMAKE_BUILD_TYPE ) + SET( CMAKE_BUILD_TYPE Release CACHE STRING + "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." + FORCE ) endif() +file( GLOB SOURCES src/*.c ) + include_directories( include ) -file( GLOB SOURCES "src/*.c" ) add_executable( ${PROJECT_NAME} ${SOURCES} ) if( EMSCRIPTEN ) # Web -- cgit v1.2.3