Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CXX = clang++

# Qt paths (Homebrew on Apple Silicon) - needed for linking
QT_PREFIX = /opt/homebrew/opt/qt
QT_LIBS = -F$(QT_PREFIX)/lib -framework QtCore
else
CXX = g++

QT_VERSION := $(shell (pkg-config --exists Qt6Core && echo Qt6Core) || (pkg-config --exists Qt5Core && echo Qt5Core) || true)
QT_PREFIX ?= /usr
QT_LIBS := -L$(QT_PREFIX)/lib -l$(QT_VERSION)

endif

CXXFLAGS = -std=c++17 -Wall -Wextra -I../src
LDFLAGS = -L../result/lib -llogos_core $(QT_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
);

devShells = forAllSystems ({ pkgs }: {
devShells = forAllSystems ({ pkgs, ... }: {
default = pkgs.mkShell {
nativeBuildInputs = [
pkgs.cmake
Expand Down