add build system and main.cc
This commit is contained in:
parent
6476dc5e77
commit
6c2ffa1b60
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/.rsconscache
|
||||||
|
/tst
|
15
Rakefile.rb
Normal file
15
Rakefile.rb
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
require "rscons"
|
||||||
|
|
||||||
|
task :default do
|
||||||
|
Rscons::Environment.new do |env|
|
||||||
|
env["CPPPATH"] += ["gtest-1.7.0", "gtest-1.7.0/include"]
|
||||||
|
env["CXXFLAGS"] << "-pthread"
|
||||||
|
env["LIBS"] << "pthread"
|
||||||
|
sources = Dir["gtest-1.7.0/src/gtest-all.cc", "*.cc"]
|
||||||
|
env.Program("tst", sources)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
task :clean do
|
||||||
|
Rscons.clean
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user