Skip to content

Instantly share code, notes, and snippets.

View KRMisha's full-sized avatar

Misha Krieger-Raynauld KRMisha

View GitHub Profile
@KRMisha
KRMisha / Makefile.patch
Last active October 29, 2023 05:30
How to integrate vcpkg into a Makefile (https://github.com/KRMisha/Makefile) for SFML
diff --git a/Makefile b/Makefile
index 3e0c8b1..22b8fb5 100644
--- a/Makefile
+++ b/Makefile
@@ -22,5 +22,5 @@ INCLUDES := -I$(INCLUDE_DIR)
# C preprocessor settings
-CPPFLAGS = $(INCLUDES) -MMD -MP
+CPPFLAGS = $(INCLUDES) -MMD -MP -DSFML_STATIC
@KRMisha
KRMisha / Makefile.patch
Last active September 4, 2023 05:47
How to integrate Conan into a Makefile (https://github.com/KRMisha/Makefile) for SFML
diff --git a/Makefile b/Makefile
index 9d5d7dc..51a16ed 100644
--- a/Makefile
+++ b/Makefile
@@ -12,16 +12,25 @@ ASSETS_DIR = assets
ASSETS_OS_DIR := $(ASSETS_DIR)_os
INSTALL_DIR := ~/Desktop/$(EXEC)
+# Conan
+CONAN_DEFINE_FLAG = -D