premake4.lua 507 B

123456789101112131415161718192021222324252627282930313233343536
  1. project "hello_gtest"
  2. kind "ConsoleApp"
  3. -- defines { }
  4. targetdir "../../bin"
  5. includedirs
  6. {
  7. ".","../gtest-1.7.0/include"
  8. }
  9. if os.is("Windows") then
  10. --see http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012
  11. defines {"_VARIADIC_MAX=10"}
  12. end
  13. -- linkLib "gtest"
  14. links "gtest"
  15. files {
  16. "**.cpp",
  17. "**.h",
  18. -- "../gtest-1.7.0/src/gtest_main.cc"
  19. }
  20. if os.is("Windows") then
  21. end
  22. if os.is("Linux") then
  23. end
  24. if os.is("MacOSX") then
  25. end