From 4254cc94e4b15d4ef014f499c053782c918e6a26 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 10 Jun 2015 05:16:16 +0300 Subject: [PATCH] Mention cmake module file --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index deab0ea..3181464 100644 --- a/README.md +++ b/README.md @@ -153,9 +153,19 @@ variable: SDL2pp installs pkg-config file, so it can be used with any build system which interacts with pkg-config, including CMake and GNU -Autotools. +Autotools. It also installs CMake module file, which can be used +from CMake directly: -SDL2pp is also already available from following package repositories: +```cmake +FIND_PACKAGE(SDL2PP REQUIRED) + +INCLUDE_DIRECTORIES(${SDL2PP_INCLUDE_DIRS}) +... +TARGET_LINK_LIBRARIES(... ${SDL2PP_LIBRARIES}) +``` + +SDL2pp is also already available from the following package +repositories: * [Arch Linux AUR](https://aur.archlinux.org/packages/sdl2pp-git/) * [DragonflyBSD DPorts](https://github.com/DragonFlyBSD/DPorts/tree/master/devel/sdl2pp)