update rakefile for convenient cmake setup
This commit is contained in:
parent
ae20bac3c5
commit
5c07204351
4
Rakefile
4
Rakefile
@ -82,9 +82,13 @@ task :default => [:build]
|
|||||||
|
|
||||||
desc "Build using CMake."
|
desc "Build using CMake."
|
||||||
task :build do
|
task :build do
|
||||||
|
if Dir.exists? BUILD_FOLDER
|
||||||
Dir.chdir BUILD_FOLDER do
|
Dir.chdir BUILD_FOLDER do
|
||||||
system "make"
|
system "make"
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
system "mkdir build; cd build; cmake ..; make"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Setup config files."
|
desc "Setup config files."
|
||||||
|
Loading…
Reference in New Issue
Block a user