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