1 # - Try to find the libsnore library
2 # Once done this will define
4 # LIBSNORE_FOUND - system has the LIBSNORE library
5 # LIBSNORE_LIBRARIES - The libraries needed to use LIBSNORE
6 # LIBSNORE_INCLUDE_DIRS - The includes needed to use LIBSNORE
7 # LIBSNORE_PLUGIN_PATH - Path of the plugins
8 # Copyright 2013 Patrick von Reth <vonreth@kde.org>
10 find_path(LIBSNORE_INCLUDE_DIR
11 NAMES snore/core/snore.h
12 PATHS ${KDE4_INCLUDE_DIR}
15 find_library(LIBSNORE_LIBRARY
22 find_path(LIBSNORE_PLUGIN_PATH snoreplugins)
24 if(LIBSNORE_LIBRARY AND LIBSNORE_PLUGIN_PATH)
25 set(LIBSNORE_PLUGIN_PATH ${LIBSNORE_PLUGIN_PATH}/snoreplugins)
28 set(LIBSNORE_LIBRARIES ${LIBSNORE_LIBRARY})
29 set(LIBSNORE_INCLUDE_DIRS ${LIBSNORE_INCLUDE_DIR})
31 include(FindPackageHandleStandardArgs)
32 find_package_handle_standard_args(LIBSNORE DEFAULT_MSG LIBSNORE_LIBRARIES LIBSNORE_INCLUDE_DIRS)
34 mark_as_advanced(LIBSNORE_LIBRARIES LIBSNORE_INCLUDE_DIRS)