diff options
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 |
