diff options
author | Marek Pikarski <mass@directfb.org> | 2013-10-01 09:42:42 +0200 |
---|---|---|
committer | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2013-10-01 16:19:00 +0200 |
commit | 83c20e7559ce9f3dab6035c755588562e5656fb8 (patch) | |
tree | 41146dc391ec765b21362dd91c9509cba033bd91 | |
parent | 5a7152634684045ea46f9a3e54ae3039cbdc1b36 (diff) | |
download | layer_management-83c20e7559ce9f3dab6035c755588562e5656fb8.tar.gz |
modules: Added helper for cmake to find DirectFB
Added helper for cmake to find all LIBS/INCLUDES as needed to build LM with DirectFB support.
Signed-off-by: Marek Pikarski <mass@directfb.org>
-rw-r--r-- | cmake/modules/FindDirectFB.cmake | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cmake/modules/FindDirectFB.cmake b/cmake/modules/FindDirectFB.cmake new file mode 100644 index 0000000..0190f9d --- /dev/null +++ b/cmake/modules/FindDirectFB.cmake @@ -0,0 +1,29 @@ +INCLUDE(FindPkgConfig) + +PKG_CHECK_MODULES (DIRECTFB REQUIRED directfb) +PKG_CHECK_MODULES (DIRECTFB_INTERNAL REQUIRED directfb-internal) +PKG_CHECK_MODULES (DIRECTFB_EGL REQUIRED egl) + +SET( DirectFB_FOUND "NO" ) +IF(DIRECTFB_LIBRARIES) + message(STATUS "Found DirectFB ldflags: ${DIRECTFB_LDFLAGS}") + message(STATUS "Found DirectFB libraries: ${DIRECTFB_LIBRARIES}") + IF(DIRECTFB_INTERNAL_INCLUDE_DIRS) + SET( DirectFB_FOUND "YES" ) + message(STATUS "Found DirectFB-internal includes: ${DIRECTFB_INTERNAL_INCLUDE_DIRS}") + ENDIF() + IF(DIRECTFB_EGL_LIBRARIES) + message(STATUS "Found DirectFB-EGL ldflags: ${DIRECTFB_EGL_LDFLAGS}") + message(STATUS "Found DirectFB-EGL libraries: ${DIRECTFB_EGL_LIBRARIES}") + message(STATUS "Found DirectFB-EGL includes: ${DIRECTFB_EGL_INCLUDE_DIRS}") + ENDIF() +ENDIF() + +MARK_AS_ADVANCED( + DIRECTFB_LDFLAGS + DIRECTFB_LIBRARIES + DIRECTFB_INTERNAL_INCLUDE_DIRS + DIRECTFB_EGL_LDFLAGS + DIRECTFB_EGL_LIBRARIES + DIRECTFB_EGL_INCLUDE_DIRS +) |