-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·24 lines (17 loc) · 770 Bytes
/
Makefile
File metadata and controls
executable file
·24 lines (17 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CMAKEARGS+=$(if $(D),-DCMAKE_BUILD_TYPE=Debug,-DCMAKE_BUILD_TYPE=Release)
CMAKEARGS+=$(if $(COV),-DOPT_COV=1)
CMAKEARGS+=$(if $(PROF),-DOPT_PROF=1)
CMAKEARGS+=$(if $(LIBCXX),-DOPT_LIBCXX=1)
CMAKE=cmake
JOBSFLAG=$(filter -j%,$(MAKEFLAGS))
cmake:
$(CMAKE) -B build . $(CMAKEARGS)
$(MAKE) -C build $(JOBSFLAG) $(if $(V),VERBOSE=1)
vc:
"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)
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/amd64/MSBuild.exe" build/*.sln -t:Rebuild
ctest: TEST=1
ctest: cmake
cd build && ctest --verbose
clean:
$(RM) -r build CMakeFiles CMakeCache.txt CMakeOutput.log