From 57385c162c09b56808d21eb29b803e6666f2c705 Mon Sep 17 00:00:00 2001 From: Werner Schweer Date: Tue, 17 Oct 2006 10:38:50 +0000 Subject: add -O2 --- muse/CMakeLists.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/muse/CMakeLists.txt b/muse/CMakeLists.txt index 80c712f9..a3f33cee 100644 --- a/muse/CMakeLists.txt +++ b/muse/CMakeLists.txt @@ -26,8 +26,15 @@ if (NOT CMAKE_INSTALL_LIBDIR) SET(CMAKE_INSTALL_LIBDIR "lib") endif (NOT CMAKE_INSTALL_LIBDIR) -set(CMAKE_BUILD_TYPE Debug) -# set(CMAKE_BUILD_TYPE Release) +set(CMAKE_BUILD_TYPE debug) +# set(CMAKE_BUILD_TYPE release) + +# for debugging the make system uncomment next line: +#set(CMAKE_VERBOSE_MAKEFILE ON) + +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Winvalid-pch -fno-exceptions") +set(CMAKE_CXX_FLAGS_RELEASE "-O2") +set(CMAKE_CXX_FLAGS_DEBUG "-g") set(CMAKE_INCLUDE_CURRENT_DIR TRUE) set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) @@ -47,9 +54,6 @@ option ( ENABLE_DSSI "enable Disposable Soft Synth Interface" ON) option ( ENABLE_VST "enable VST/win support" OFF) option ( ENABLE_FLUID "enable fluidsynth softsynth plugins" ON) -# for debugging the make system uncomment next line: -# set(CMAKE_VERBOSE_MAKEFILE ON) - set(QT_MIN_VERSION "4.2.0") set(QT_USE_QTXML TRUE) set(QT_USE_QTDESIGNER TRUE) @@ -252,10 +256,6 @@ add_custom_target(all-pic-debug.h.pch WORKING_DIRECTORY ${PROJECT_BINARY_DIR} ) -set(CMAKE_CXX_FLAGS - "-g -Wall -Wextra -Winvalid-pch -fno-exceptions" - ) - subdirs(al awl grepmidi plugins midiplugins synti muse share doc) include_directories( -- cgit v1.2.3