Minor improvements to CMake build system suggested by riebl so that we are more standard and values corectly appear in CMake GUIs

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10919 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-03-04 20:07:44 +00:00
parent c980c6e3cf
commit cc33573368
2 changed files with 17 additions and 3 deletions

View File

@ -6,12 +6,20 @@ include (CheckCXXSourceCompiles)
project(SuperTuxKart)
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release")
endif()
#set(CMAKE_VERBOSE_MAKEFILE TRUE)
set(STK_SOURCE_DIR "src")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin")
set(PROJECT_VERSION "0.7.3")
set(CMAKE_CXX_FLAGS_RELEASE -O2)
# Tweakable values
if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(DEBUG ON)
@ -183,7 +191,6 @@ if(DEBUG)
add_definitions(-DDEBUG)
else()
add_definitions(-DNDEBUG)
add_definitions(-O2)
endif()
find_package(Freetype)

File diff suppressed because one or more lines are too long