From c124255a8a04caa37ec8fe78cd4fb49b991f7213 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 6 Oct 2014 21:23:36 +0200 Subject: [PATCH] cmake: add build types Signed-off-by: Thorsten Liebig --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3441178..19fa5dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) cmake_minimum_required(VERSION 2.8)