-
Notifications
You must be signed in to change notification settings - Fork 0
/
gmock.lua
60 lines (49 loc) · 1.9 KB
/
gmock.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
project "gmock"
-- kind is used to indicate the type of this project.
kind "StaticLib"
-- We set the location of the files Premake will generate
location "output/gmock"
language "C++"
targetdir "output/bin/%{cfg.buildcfg}"
-- The library's public headers
includedirs { "testing/gmock/include", "testing/gmock" }
useGTestLib()
files { "testing/gmock/include/gmock/**.h", "testing/gmock/src/**.cc" }
excludes { "testing/gmock/src/gmock_main.cc" }
filter "files:testing/gmock/src/gmock-all.cc"
flags { "ExcludeFromBuild" }
function addGMockDefinesAndIncludes()
filter {}
addGTestDefinesAndIncludes()
includedirs { "testing/gmock/include" }
end
function useGmockLib()
addGMockDefinesAndIncludes()
links "gmock"
end
project "gmock_unittest"
kind "ConsoleApp"
location "output/gmock_unittest"
language "C++"
targetdir "output/bin/%{cfg.buildcfg}"
-- The library's public headers
includedirs { "testing/gmock", "testing/gtest" }
useGTestLib()
useGmockLib()
files {
"testing/gmock/test/**.h",
"testing/gmock/test/gmock-actions_test.cc",
"testing/gmock/test/gmock-cardinalities_test.cc",
"testing/gmock/test/gmock-generated-actions_test.cc",
"testing/gmock/test/gmock-generated-function-mockers_test.cc",
"testing/gmock/test/gmock-generated-internal-utils_test.cc",
"testing/gmock/test/gmock-generated-matchers_test.cc",
"testing/gmock/test/gmock-internal-utils_test.cc",
-- "testing/gmock/test/gmock-matchers_test.cc",
"testing/gmock/test/gmock-more-actions_test.cc",
"testing/gmock/test/gmock-nice-strict_test.cc",
"testing/gmock/test/gmock-port_test.cc",
-- "testing/gmock/test/gmock-spec-builders_test.cc",
"testing/gmock/test/gmock_test.cc",
"testing/gmock/src/gmock_main.cc"
}