CMakeLists.txt: make tests optional

Run test-strbuf using ctest.
This commit is contained in:
Anna “CyberTailor”
2022-02-21 12:22:29 +05:00
parent 415c097489
commit aa9dd9c155
3 changed files with 20 additions and 20 deletions
-6
View File
@@ -1,6 +0,0 @@
#!/bin/env sh
mkdir -p build/
cd build
cmake ..
cmake --build . --target fastfetch-test-strbuf -j$(nproc)
./fastfetch-test-strbuf "$@"