premake5.lua 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. local prelude = require "prelude"
  2. local portaudio = require "prelude.libraries.portaudio"
  3. local physfs = require "prelude.libraries.physfs"
  4. local glm = require "prelude.libraries.glm"
  5. workspace "Your Project here"
  6. configurations {"Debug", "DebugOpt", "Release"}
  7. location "build"
  8. glm:use "None"
  9. portaudio:use "SharedLib"
  10. physfs:use "SharedLib"
  11. -- I'll also try to have a common core system to factorize some programming
  12. -- elements together.
  13. project "Core"
  14. kind "StaticLib"
  15. files {"include/core/**.hpp", "src/core/**.cpp"}
  16. includedirs {""}
  17. project "Main"
  18. cppdialect "C++17"
  19. kind "ConsoleApp"
  20. files {"include/main/**.hpp", "src/main/**.cpp"}
  21. includedirs {"include"}
  22. links {"Core"}
  23. -- TODO : issues at link on VS2015. Does it happen at home?
  24. -- Need to manually check "Link Library Dependencies" every time.
  25. prelude.link_against_modules {portaudio, physfs, glm}
  26. prelude.base_project_settings()