27 lines
No EOL
831 B
Lua
27 lines
No EOL
831 B
Lua
workspace "Template"
|
|
configurations { "Debug", "Release" }
|
|
--ecc scripts from https://github.com/MattBystrin/premake-ecc
|
|
require ".ecc/ecc"
|
|
|
|
project "Template"
|
|
kind "WindowedApp"
|
|
language "C++"
|
|
targetdir "_bin/%{cfg.buildcfg}"
|
|
objdir "_obj/%{cfg.buildcfg}"
|
|
|
|
files { "**.h", "**.cpp" }
|
|
|
|
filter "configurations:Debug"
|
|
defines { "DEBUG" }
|
|
symbols "On"
|
|
links { "SDL2", "SDL2_image", "SDL2_ttf" }
|
|
--links { "SDL2", "SDL2_image", "GL", "GLEW", "SOIL", "fmod", "fmodstudio", "SDL2_ttf" }
|
|
--libdirs { "../External/FMOD/lib/x86_64" }
|
|
--includedirs { "../External/FMOD/inc" }
|
|
|
|
filter "configurations:Release"
|
|
defines { "NDEBUG" }
|
|
optimize "On"
|
|
links { "SDL2", "SDL2_image", "SDL2_ttf" }
|
|
--postbuildcommands { "{COPY} %[Assets] %[%{!cfg.targetdir}]" }
|
|
|