forked from syoyo/tinyexr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
45 lines (37 loc) · 959 Bytes
/
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
41
42
43
44
45
newoption {
trigger = "with-zfp",
description = "Build with ZFP support."
}
sources = {
"tinyexr.h",
"test_tinyexr.cc",
}
zfp_sources = {
"./deps/ZFP/src/*.c"
}
-- premake4.lua
solution "TinyEXRSolution"
configurations { "Release", "Debug" }
if (os.is("windows")) then
platforms { "x32", "x64" }
else
platforms { "native", "x32", "x64" }
end
if _OPTIONS["with-zfp"] then
includedirs { "./deps/ZFP/inc" }
defines { "TINYEXR_USE_ZFP=1" }
files { zfp_sources }
end
-- A project defines one build target
project "tinyexrtest"
kind "ConsoleApp"
language "C++"
files { sources }
configuration "Debug"
defines { "DEBUG" } -- -DDEBUG
flags { "Symbols" }
targetname "test_tinyexr_debug"
configuration "Release"
-- defines { "NDEBUG" } -- -NDEBUG
flags { "Symbols", "Optimize" }
targetname "test_tinyexr"