diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-07-01 12:46:58 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-07-01 12:46:58 +0300 |
commit | 730a56f58e3b6e556437ca462645504a860a1ed2 (patch) | |
tree | eb59e2922639ac342abdd53e78f9c6abd363db33 /Makefile | |
parent | 82b48d926dd835aa3adb5fb3a8426532386df5c0 (diff) |
Remove hardcoded font sizes, margins etc
- Fixes small font issue on MacOs
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -1,23 +1,45 @@ SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \)) +# Linux specific helpers debug: @cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug @cmake --build build + release-debug: @cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo @cmake --build build +test: + @cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo + @cmake --build build + @cd build && GTEST_COLOR=1 ctest --verbose + +# MacOS specific helpers +mdebug: + @cmake -DBUILD_TESTS=OFF \ + -H. \ + -GNinja \ + -Bbuild \ + -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 \ + -DCMAKE_BUILD_TYPE=Debug + @cmake --build build + +mrelease: + @cmake -DBUILD_TESTS=OFF \ + -H. \ + -GNinja \ + -Bbuild \ + -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo + @cmake --build build + run: @./build/nheko lint: @clang-format -i $(SRC) -test: - @cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo - @cmake --build build - @cd build && GTEST_COLOR=1 ctest --verbose clean: rm -rf build |