-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
206 lines (197 loc) · 12.5 KB
/
CMakeLists.txt
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
## Meta build project for running tests
cmake_minimum_required(VERSION 3.8.2 FATAL_ERROR)
project(CMakeNuGetToolsTests NONE)
enable_testing()
## Tests
# Test: NuGetTools.helper.test.cmake
add_test(NAME NuGetTools.helper.test.cmake
COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_SOURCE_DIR}/tests/NuGetTools.helper.test.cmake"
)
# Test: export_simple_cmake
# TODO: we rely on sequential execution here...
add_custom_target(export_simple_cmake.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_cmake"
)
add_test(NAME export_simple_cmake.g
COMMAND "${CMAKE_COMMAND}" -T v141,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" -DCMAKE_CONFIGURATION_TYPES=Release
"${CMAKE_SOURCE_DIR}/tests/export_simple_cmake"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_cmake"
)
add_test(NAME export_simple_cmake.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_cmake"
)
# Test: export_simple_dot_targets
# TODO: we rely on sequential execution here...
add_custom_target(export_simple_dot_targets.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_dot_targets"
)
add_test(NAME export_simple_dot_targets.g
COMMAND "${CMAKE_COMMAND}" -T v141,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" -DCMAKE_CONFIGURATION_TYPES=Release
"${CMAKE_SOURCE_DIR}/tests/export_simple_dot_targets"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_dot_targets"
)
add_test(NAME export_simple_dot_targets.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_dot_targets"
)
# Test: export_cmake_and_install
# TODO: we rely on sequential execution here...
add_custom_target(export_cmake_and_install.build.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_cmake_and_install"
)
add_test(NAME export_cmake_and_install.g
COMMAND "${CMAKE_COMMAND}" -T v141,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" -DCMAKE_CONFIGURATION_TYPES=Release
"-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/Release/export_cmake_and_install"
"${CMAKE_SOURCE_DIR}/tests/export_cmake_and_install"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_cmake_and_install"
)
add_test(NAME export_cmake_and_install.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_cmake_and_install"
)
add_custom_target(export_cmake_and_install.install.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/Release/export_cmake_and_install"
)
add_test(NAME export_cmake_and_install.install
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_cmake_and_install"
)
# Test: write_nuspec_simple
# TODO: we rely on sequential execution here...
add_custom_target(write_nuspec_simple.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_test(NAME write_nuspec_simple.g
COMMAND "${CMAKE_COMMAND}" -T v141,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" "-DCMAKE_CONFIGURATION_TYPES=Release;Debug"
"-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/MultiConfig/write_nuspec_simple"
"${CMAKE_SOURCE_DIR}/tests/write_nuspec_simple"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_test(NAME write_nuspec_simple.release.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_test(NAME write_nuspec_simple.debug.build
COMMAND "${CMAKE_COMMAND}" --build . --config Debug --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Debug /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_custom_target(write_nuspec_simple.install.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_test(NAME write_nuspec_simple.release.install
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_test(NAME write_nuspec_simple.debug.install
COMMAND "${CMAKE_COMMAND}" --build . --config Debug --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Debug /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
add_test(NAME write_nuspec_simple.mergeandpack
COMMAND "${CMAKE_COMMAND}"
"-DMERGE_OUTPUT=CMakeNuGetTools/write_nuspec_simple.nuspec"
"-DMERGE_INPUTS=CMakeNuGetTools/write_nuspec_simple.Release.nuspec;CMakeNuGetTools/write_nuspec_simple.Debug.nuspec"
-DNUGET_COMMAND=nuget
"-DNUPKG_OUTPUT_DIRECTORY=${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple/CMakeNuGetTools/nupkg"
-P "${CMAKE_SOURCE_DIR}/CMakeLists.pack.cmake"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_nuspec_simple"
)
# Test: write_autopkg_nested
# TODO: we rely on sequential execution here...
add_custom_target(write_autopkg_nested.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_test(NAME write_autopkg_nested.g
COMMAND "${CMAKE_COMMAND}" -T v142,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" "-DCMAKE_CONFIGURATION_TYPES=Release;Debug"
"-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/MultiConfig/write_autopkg_nested"
"${CMAKE_SOURCE_DIR}/tests/write_autopkg_nested"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_test(NAME write_autopkg_nested.release.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_test(NAME write_autopkg_nested.debug.build
COMMAND "${CMAKE_COMMAND}" --build . --config Debug --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Debug /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_custom_target(write_autopkg_nested.install.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_test(NAME write_autopkg_nested.release.install
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_test(NAME write_autopkg_nested.debug.install
COMMAND "${CMAKE_COMMAND}" --build . --config Debug --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Debug /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
add_test(NAME write_autopkg_nested.mergeandpack
COMMAND "${CMAKE_COMMAND}"
"-DMERGE_OUTPUT=CMakeNuGetTools/write_autopkg_nested.autopkg"
"-DMERGE_INPUTS=CMakeNuGetTools/write_autopkg_nested.Release.autopkg;CMakeNuGetTools/write_autopkg_nested.Debug.autopkg"
-P "${CMAKE_SOURCE_DIR}/CMakeLists.pack.autopkg.cmake"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_nested"
)
# Test: write_autopkg_simple
# TODO: we rely on sequential execution here...
add_custom_target(write_autopkg_simple.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_test(NAME write_autopkg_simple.g
COMMAND "${CMAKE_COMMAND}" -T v142,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" "-DCMAKE_CONFIGURATION_TYPES=Release;Debug"
"-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/MultiConfig/write_autopkg_simple"
"${CMAKE_SOURCE_DIR}/tests/write_autopkg_simple"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_test(NAME write_autopkg_simple.release.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_test(NAME write_autopkg_simple.debug.build
COMMAND "${CMAKE_COMMAND}" --build . --config Debug --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Debug /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_custom_target(write_autopkg_simple.install.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/install/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_test(NAME write_autopkg_simple.release.install
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_test(NAME write_autopkg_simple.debug.install
COMMAND "${CMAKE_COMMAND}" --build . --config Debug --target INSTALL -- /p:PlatformToolset=v141 /p:Configuration=Debug /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
add_test(NAME write_autopkg_simple.mergeandpack
COMMAND "${CMAKE_COMMAND}"
"-DMERGE_OUTPUT=CMakeNuGetTools/write_autopkg_simple.autopkg"
"-DMERGE_INPUTS=CMakeNuGetTools/write_autopkg_simple.Release.autopkg;CMakeNuGetTools/write_autopkg_simple.Debug.autopkg"
-P "${CMAKE_SOURCE_DIR}/CMakeLists.pack.autopkg.cmake"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/MultiConfig/write_autopkg_simple"
)
# Test: export_simple_toolchain
# TODO: we rely on sequential execution here...
add_custom_target(export_simple_toolchain.mkdir ALL
COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_toolchain"
)
add_test(NAME export_simple_toolchain.g
COMMAND "${CMAKE_COMMAND}" -T v141,host=x64 -G "Visual Studio 15 2017 Win64" -DNUGET_COMMAND=nuget
"-DNUGET_PACKAGES_DIR=${CMAKE_SOURCE_DIR}/packages" -DCMAKE_CONFIGURATION_TYPES=Release
"${CMAKE_SOURCE_DIR}/tests/export_simple_toolchain"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_toolchain"
)
add_test(NAME export_simple_toolchain.build
COMMAND "${CMAKE_COMMAND}" --build . --config Release --target ALL_BUILD -- /p:PlatformToolset=v141 /p:Configuration=Release /p:Platform=x64
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build/cmake/x64-windows/Release/export_simple_toolchain"
)
# Test: NuGetTools.helper.test.cmake
add_test(NAME NuGetSemVer.test.cmake
COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_SOURCE_DIR}/tests/NuGetSemVer.test.cmake"
)