mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00

It's not that large (even smaller than our example .wav file), has liberal license and saves us from complexity of finding system font. Later I may consider installing it as a default font to make ttf features of SDL2pp usable out-of-box without need for extra fonts.
27 lines
683 B
CMake
27 lines
683 B
CMake
ADD_DEFINITIONS(-DTESTDATA_DIR="${PROJECT_SOURCE_DIR}/testdata")
|
|
|
|
ADD_EXECUTABLE(sprites sprites.cc)
|
|
TARGET_LINK_LIBRARIES(sprites SDL2pp)
|
|
|
|
ADD_EXECUTABLE(lines lines.cc)
|
|
TARGET_LINK_LIBRARIES(lines SDL2pp)
|
|
|
|
ADD_EXECUTABLE(rendertarget rendertarget.cc)
|
|
TARGET_LINK_LIBRARIES(rendertarget SDL2pp)
|
|
|
|
ADD_EXECUTABLE(audio_sine audio_sine.cc)
|
|
TARGET_LINK_LIBRARIES(audio_sine SDL2pp)
|
|
|
|
ADD_EXECUTABLE(audio_wav audio_wav.cc)
|
|
TARGET_LINK_LIBRARIES(audio_wav SDL2pp)
|
|
|
|
IF(SDL2PP_WITH_IMAGE)
|
|
ADD_EXECUTABLE(image image.cc)
|
|
TARGET_LINK_LIBRARIES(image SDL2pp)
|
|
ENDIF(SDL2PP_WITH_IMAGE)
|
|
|
|
IF(SDL2PP_WITH_TTF)
|
|
ADD_EXECUTABLE(ttf ttf.cc)
|
|
TARGET_LINK_LIBRARIES(ttf SDL2pp)
|
|
ENDIF(SDL2PP_WITH_TTF)
|