ServerMonitor / dev /tests /cqt /build_click.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
596 Bytes
#!/bin/bash
# usage: build_click.sh <project dir (headers)> <obj dir> <out>
set -e; P="$1"; O="$2"; OUT="$3"; SDK=$HOME/.local/share/qt5-sdk/root; I=$SDK/usr/include/x86_64-linux-gnu/qt5
OBJS=(); for o in "$O"/*.o; do [[ $(basename "$o") == main.o ]] || OBJS+=("$o"); done
g++ -std=c++17 -O1 -fPIC -DQT_NO_DEBUG -I$I -I$I/QtCore -I$I/QtGui -I$I/QtWidgets -I$SDK/usr/include -I$SDK/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I"$P/src" \
"$(dirname "$0")/click_test.cpp" "${OBJS[@]}" -o "$OUT" -L/usr/lib/x86_64-linux-gnu -l:libQt5Widgets.so.5 -l:libQt5Gui.so.5 -l:libQt5Core.so.5 -lpthread