summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2006-10-17 10:38:50 +0000
committerWerner Schweer <ws.seh.de>2006-10-17 10:38:50 +0000
commit57385c162c09b56808d21eb29b803e6666f2c705 (patch)
treeda90b0e02a14495db23a5961a9f96102f451fc46
parent4d12b4ce3f207f3b433d07d094dbfd8e0cc05624 (diff)
add -O2
-rw-r--r--muse/CMakeLists.txt18
1 files 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(