Skip to content

Commit 5d5650e

Browse files
committed
added support for building this on windows
1 parent 9a8da0d commit 5d5650e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Makefile

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
CMAKEARGS+=$(if $(D),-DCMAKE_BUILD_TYPE=Debug,-DCMAKE_BUILD_TYPE=Release)
2+
CMAKEARGS+=$(if $(COV),-DOPT_COV=1)
3+
CMAKEARGS+=$(if $(PROF),-DOPT_PROF=1)
4+
CMAKEARGS+=$(if $(LIBCXX),-DOPT_LIBCXX=1)
5+
16
cmake:
2-
cmake -B build . $(if $(D),-DCMAKE_BUILD_TYPE=Debug,-DCMAKE_BUILD_TYPE=Release) $(CMAKEARGS)
7+
cmake -B build . $(CMAKEARGS)
38
$(MAKE) -C build $(if $(V),VERBOSE=1)
49

10+
vc:
11+
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" -G"Visual Studio 16 2019" -B build . $(CMAKEARGS)
12+
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" build/*.sln -t:Rebuild
13+
514

615
clean:
716
$(RM) -r build CMakeFiles CMakeCache.txt CMakeOutput.log

0 commit comments

Comments
 (0)