ServerMonitor / dev /tests /cqt /build_analysis_test.sh
mchuca's picture
Server Monitor: six editions (C++/Qt, Python, web for Linux and Windows), requirements and developer kit
bad179a
Raw History Blame Contribute Delete
488 Bytes
#!/bin/sh
# usage: build_analysis_test.sh "<project dir>" <out binary> [extra .cpp ...] (C++ editions only)
P="$1"; O="$2"; shift 2; SDK=$HOME/.local/share/qt5-sdk/root; I=$SDK/usr/include/x86_64-linux-gnu/qt5
g++ -std=c++17 -O1 -fPIC -I$I -I$I/QtCore -I$SDK/usr/include -I$SDK/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I"$P/src" \
"$(dirname "$0")/analysis_test.cpp" "$P/src/core/Model.cpp" "$P/src/core/History.cpp" "$@" -o "$O" -L/usr/lib/x86_64-linux-gnu -l:libQt5Core.so.5