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:
parent
c980c6e3cf
commit
cc33573368
@ -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
Loading…
Reference in New Issue
Block a user