cmake: add build types

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/13/head
Thorsten Liebig 2014-10-06 21:23:36 +02:00
parent 8b687f541c
commit c124255a8a
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,11 @@
# define build type
IF( DEFINED CMAKE_BUILD_TYPE )
SET( CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Set to either \"Release\" or \"Debug\"" )
ELSE()
SET( CMAKE_BUILD_TYPE Release CACHE STRING "Set to either \"Release\" or \"Debug\"" )
ENDIF()
PROJECT(openEMS CXX) PROJECT(openEMS CXX)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)