Modify CMakeLists.txt file to handle build type in a better way

This commit is contained in:
Daniel Chappuis 2014-07-08 23:47:14 +02:00
parent 35574fd138
commit c532c87794

View File

@ -4,12 +4,16 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Project configuration # Project configuration
PROJECT(REACTPHYSICS3D) PROJECT(REACTPHYSICS3D)
# Default build type # Build type
SET(CMAKE_BUILD_TYPE "Debug") IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release")
ENDIF (NOT CMAKE_BUILD_TYPE)
# Where to build the library # Where to build the library
SET(LIBRARY_OUTPUT_PATH "lib") SET(LIBRARY_OUTPUT_PATH "lib")
MESSAGE("Build type is : " ${CMAKE_BUILD_TYPE})
# Where to build the executables # Where to build the executables
SET(OUR_EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin") SET(OUR_EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")