mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-08 23:10:58 -04:00

- Use modern CMake way to set C++ standard - Remove hacks around Optional, as std::optional is now available
14 lines
328 B
Makefile
14 lines
328 B
Makefile
CXX?= g++
|
|
|
|
CXXFLAGS+= -std=c++17
|
|
|
|
SDL2PP_CFLAGS= `pkg-config --cflags sdl2pp`
|
|
SDL2PP_LIBS= `pkg-config --libs sdl2pp`
|
|
|
|
all: make-ext-test
|
|
|
|
make-ext-test:
|
|
@echo "SDL2PP_CFLAGS=${SDL2PP_CFLAGS}"
|
|
@echo "SDL2PP_LIBS=${SDL2PP_LIBS}"
|
|
${CXX} ${CXXFLAGS} ../../examples/sprites.cc -o make-ext-test ${SDL2PP_CFLAGS} ${SDL2PP_LIBS}
|