diff options
| author | jussi | 2022-08-19 13:38:09 +0300 |
|---|---|---|
| committer | jussi | 2022-08-19 13:38:09 +0300 |
| commit | 49f1dad6b9deeb769e384ae547fca9f64b90bf79 (patch) | |
| tree | b02b240d6c11c1bf29c3dc6ac9a7063137b4c971 /CMakeLists.txt | |
| parent | 4f54a0a4992358c633e5e3535e2980211028f3a2 (diff) | |
| download | reilua-enhanced-49f1dad6b9deeb769e384ae547fca9f64b90bf79.tar.gz reilua-enhanced-49f1dad6b9deeb769e384ae547fca9f64b90bf79.tar.bz2 reilua-enhanced-49f1dad6b9deeb769e384ae547fca9f64b90bf79.zip | |
Moved to raylib 4.2.0. Renamed some directory functions to raylib 4.2.0 conventions. Removed GenMeshBinormals and GetRayCollisionModel. Sound and music pan.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 8 insertions, 7 deletions
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 |
