From 5c07204351584f0d2048b837f3abd55e11a2b62c Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Sun, 30 Jun 2013 10:21:21 +0200 Subject: [PATCH] update rakefile for convenient cmake setup --- Rakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index ccbb0cb9a..6472e9021 100644 --- a/Rakefile +++ b/Rakefile @@ -82,8 +82,12 @@ task :default => [:build] desc "Build using CMake." task :build do - Dir.chdir BUILD_FOLDER do - system "make" + if Dir.exists? BUILD_FOLDER + Dir.chdir BUILD_FOLDER do + system "make" + end + else + system "mkdir build; cd build; cmake ..; make" end end