Repository navigation
Expand file tree
/
Copy pathpremake5.lua
More file actions
83 lines (59 loc) · 1.35 KB
/
Copy pathpremake5.lua
File metadata and controls
83 lines (59 loc) · 1.35 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
workspace "heightmap"
language "C++"
cppdialect "C++17"
platforms { "x64" }
configurations { "debug", "release" }
flags "NoPCH"
flags "MultiProcessorCompile"
startproject "heightmap"
debugdir "%{wks.location}"
objdir "_build_/%{cfg.buildcfg}-%{cfg.platform}-%{cfg.toolset}"
targetsuffix "-%{cfg.buildcfg}-%{cfg.platform}-%{cfg.toolset}"
-- Default toolset options
filter "toolset:gcc or toolset:clang"
linkoptions { "-pthread" }
buildoptions { "-march=native", "-Wall", "-pthread" }
filter "toolset:msc-*"
defines { "_CRT_SECURE_NO_WARNINGS=1" }
defines { "_SCL_SECURE_NO_WARNINGS=1" }
buildoptions { "/utf-8" }
filter "*"
-- default libraries
filter "system:linux"
links "dl"
links "GL"
links "GLX"
filter "system:windows"
links { "opengl32", "gdi32" }
filter "*"
-- default outputs
filter "kind:StaticLib"
targetdir "lib/"
filter "kind:ConsoleApp"
targetdir "bin/"
targetextension ".exe"
filter "*"
--configurations
filter "debug"
symbols "On"
defines { "_DEBUG=1" }
filter "release"
optimize "On"
defines { "NDEBUG=1" }
filter "*"
-- Third party dependencies
include "external"
-- Projects
project "heightmap"
local sources = {
"src/**.cpp",
"src/**.hpp",
}
kind "ConsoleApp"
location "src"
files( sources )
links "x-glfw"
links "x-glew"
includedirs( "." );
dependson "x-glm"
--EOF