-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake4.lua
40 lines (34 loc) · 1.03 KB
/
premake4.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
solution "gaussian"
configurations { "release", "debug" }
-- switch gcc / clang
-- premake.gcc.cc = "gcc-8"
-- premake.gcc.cxx = "g++-8"
premake.gcc.cc = "clang"
premake.gcc.cxx = "clang++"
includedirs { ".", "src/gKit" }
configuration "release"
targetdir "bin/release"
defines { "GK_RELEASE" }
flags { "OptimizeSpeed" }
buildoptions{ "-O3" }
linkoptions{ "-O3" }
configuration "debug"
targetdir "bin/debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "linux"
buildoptions { "-mtune=native -march=native -std=c++11 -W -Wall -Wextra -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable", "-pipe" }
buildoptions { "-flto"}
linkoptions { "-flto"}
buildoptions { "-fopenmp" }
linkoptions { "-fopenmp" }
links { "SDL2", "SDL2_image" }
configuration { "linux", "debug" }
buildoptions { "-g"}
linkoptions { "-g"}
project("gaussian")
language "C++"
kind "ConsoleApp"
targetdir "bin"
includedirs { "src/", "extern/" }
files { "src/gKit/*", "src/main.cpp" }