-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
35 lines (30 loc) · 1.15 KB
/
Makefile
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
# Run unit tests
all:
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
cmake --build build --config Release --target all -v
cd build && ctest --verbose | tee -a out.txt
# Run benchmarks
benchmark:
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON \
-DBENCHMARK_TESTS=ON -DLOG_LEVEL="OFF"
cmake --build build --config Release --target all -v
cd build && ctest --verbose
# Build and test python interface
p:
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON \
-DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON
cmake --build build --config Release --target all -v
cd build && ctest --verbose -R python_unittest
d:
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON \
-DBUILD_DOTNET=ON -DBUILD_SHARED_LIBS=ON
cmake --build build --config Release --target all -v
cd build && ctest --verbose
# Run benchmarks using boost (as well as cspy)
benchmarks_boost:
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON \
-DBENCHMARK_TESTS=ON -DBENCHMARK_BOOST=ON -DBUILD_SHARED_LIBS=OFF
cmake --build build --config Release --target all -v
cd build && ctest --verbose
clean:
rm -rf build