-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
42 lines (34 loc) · 1.29 KB
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
workspace "Game Programming Course"
architecture "x86_64"
configurations {"Debug", "Release"}
targetdir "%{wks.location}/bin/%{cfg.buildcfg}-%{cfg.architecture}"
objdir "%{wks.location}/int/%{cfg.buildcfg}-%{cfg.architecture}"
includedirs {"%{wks.location}/ThirdParty/include"}
libdirs {"%{wks.location}/ThirdParty/libs"}
startproject "Sandbox"
filter "configurations:Debug"
defines "DEBUG"
symbols "On"
filter "configurations:Release"
defines "RELEASE"
optimize "On"
project "Sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
location "%{wks.location}/Sandbox"
--includes all files in source folder
includedirs {"%{wks.location}/Sandbox/src"}
postbuildcommands "{COPY} %{wks.location}/ThirdParty/libs/*.dll %{wks.location}/bin/%{cfg.buildcfg}-%{cfg.architecture}"
files {
"%{prj.location}/src/**.h",
"%{prj.location}/src/**.cpp"
}
links {
"sfml-system.lib",
"sfml-main.lib",
"sfml-window.lib",
"sfml-graphics.lib",
"sfml-audio.lib"
}
postbuildcommands "{COPY} %{wks.location}/ThirdParty/libs/*.dll %{wks.location}/bin/%{cfg.buildcfg}-%{cfg.architecture}"