From 99844e668228c35533b56f1313a884392131ef32 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Wed, 22 Dec 2010 09:38:49 +0000 Subject: added simple build script --- muse2/CMakeLists.txt | 2 +- muse2/build.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 muse2/build.sh diff --git a/muse2/CMakeLists.txt b/muse2/CMakeLists.txt index 41bc9fec..11d57f0f 100644 --- a/muse2/CMakeLists.txt +++ b/muse2/CMakeLists.txt @@ -38,7 +38,7 @@ IF(NOT DEFINED SHARE_INSTALL_PREFIX) ENDIF(NOT DEFINED SHARE_INSTALL_PREFIX) #set(CMAKE_BUILD_TYPE debug) -#set(CMAKE_BUILD_TYPE release) +set(CMAKE_BUILD_TYPE release) # If no CMAKE_BUILD_TYPE is given on the command line, # cmake either uses the cached value, or 'empty' (plain un-opt build). diff --git a/muse2/build.sh b/muse2/build.sh new file mode 100755 index 00000000..96ad329f --- /dev/null +++ b/muse2/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ -d build ]; then + echo "Build dir already exists" +else + echo "Create build dir" + mkdir build +fi +cd build +cmake -DCMAKE_BUILD_TYPE=release .. && make && echo "\nBuild was OK, now enter the 'build' dir and run 'make install' as root" + -- cgit v1.2.3