update rakefile for convenient cmake setup

This commit is contained in:
Emil Tin 2013-06-30 10:21:21 +02:00
parent ae20bac3c5
commit 5c07204351

View File

@ -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