-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake4.lua
45 lines (34 loc) · 877 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
solution "TravisCITest"
configurations { "Debug", "Release" }
configuration "Debug"
defines { "_DEBUG" }
flags { "Symbols" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
configuration {}
platforms { "x64" }
language "C++"
flags { "NoMinimalRebuild", "EnableSSE", "EnableSSE2" }
configuration {"x64", "Debug"}
targetsuffix "64D"
configuration {"x64", "Release"}
targetsuffix "64"
configuration {}
includedirs{ "./include" }
configuration {}
project "UnitTest"
kind "ConsoleApp"
location "./UnitTest"
targetdir "./build"
files { "./UnitTest/*.cpp", "./gtest-1.6.0/**" }
if os.is("linux") then
links { "pthread" }
end
if _ACTION == "vs2012" then
defines{ "GTEST_HAS_TR1_TUPLE=0" }
end
if os.is("macosx") then
buildoptions{"-DGTEST_USE_OWN_TR1_TUPLE=1"}
end
configuration {}