premake5.lua 947 B

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