forked from Piorosen/my-own-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 803 Bytes
/
Makefile
File metadata and controls
37 lines (31 loc) · 803 Bytes
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
.PHONY: build deploy configure
configure:
if ! [ -d "build" ]; then \
mkdir build; \
fi
cd build && \
cmake -DCMAKE_TOOLCHAIN_FILE=../3rdparty/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DUSE_GTEST=ON \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_TYPE=Debug \
-GNinja ..
clean:
rm -rf build
vcpkg:
git clone https://github.com/microsoft/vcpkg ./3rdparty/vcpkg
./3rdparty/vcpkg/bootstrap-vcpkg.sh
./3rdparty/vcpkg/vcpkg install
test:
if ! [ -d "build" ]; then \
mkdir build; \
fi
cd build && \
cmake -DCMAKE_TOOLCHAIN_FILE=../3rdparty/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_GTEST=ON \
-GNinja .. && \
ninja && \
ninja test