premake4.lua 878 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --
  2. -- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
  3. -- License: http://www.opensource.org/licenses/BSD-2-Clause
  4. --
  5. solution "bx"
  6. configurations {
  7. "Debug",
  8. "Release",
  9. }
  10. platforms {
  11. "x32",
  12. "x64",
  13. }
  14. language "C++"
  15. BX_DIR = (path.getabsolute("..") .. "/")
  16. local BX_BUILD_DIR = (BX_DIR .. ".build/")
  17. local BX_THIRD_PARTY_DIR = (BX_DIR .. "3rdparty/")
  18. defines {
  19. "BX_CONFIG_ENABLE_MSVC_LEVEL4_WARNINGS=1"
  20. }
  21. dofile (BX_DIR .. "premake/toolchain.lua")
  22. toolchain(BX_BUILD_DIR, BX_THIRD_PARTY_DIR)
  23. function copyLib()
  24. end
  25. dofile "bx.lua"
  26. dofile "unittest++.lua"
  27. project "bx.test"
  28. uuid "8a653da8-23d6-11e3-acb4-887628d43830"
  29. kind "ConsoleApp"
  30. debugdir (BX_DIR .."tests")
  31. includedirs {
  32. BX_DIR .. "include",
  33. BX_THIRD_PARTY_DIR .. "UnitTest++/src/",
  34. }
  35. links {
  36. "UnitTest++",
  37. }
  38. files {
  39. BX_DIR .. "test/**.cpp",
  40. BX_DIR .. "test/**.H",
  41. }