2010-08-03 23:32:49 +00:00
|
|
|
# - Try to find the libsnore library
|
2013-07-24 10:13:10 +00:00
|
|
|
# Once done this will define
|
2010-08-03 23:32:49 +00:00
|
|
|
#
|
|
|
|
# LIBSNORE_FOUND - system has the LIBSNORE library
|
|
|
|
# LIBSNORE_LIBRARIES - The libraries needed to use LIBSNORE
|
2013-07-24 10:13:10 +00:00
|
|
|
# LIBSNORE_INCLUDE_DIRS - The includes needed to use LIBSNORE
|
2014-01-14 10:24:29 +00:00
|
|
|
# Copyright 2013-2014 Patrick von Reth <vonreth@kde.org>
|
2010-08-03 23:32:49 +00:00
|
|
|
|
2013-07-24 09:41:59 +00:00
|
|
|
find_path(LIBSNORE_INCLUDE_DIR
|
|
|
|
NAMES snore/core/snore.h
|
|
|
|
PATHS ${KDE4_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
find_library(LIBSNORE_LIBRARY
|
|
|
|
NAMES
|
|
|
|
libsnore
|
|
|
|
snore
|
|
|
|
PATHS ${KDE4_LIB_DIR}
|
|
|
|
)
|
2010-08-03 23:32:49 +00:00
|
|
|
|
|
|
|
find_path(LIBSNORE_PLUGIN_PATH snoreplugins)
|
2013-07-24 09:41:59 +00:00
|
|
|
|
|
|
|
set(LIBSNORE_LIBRARIES ${LIBSNORE_LIBRARY})
|
|
|
|
set(LIBSNORE_INCLUDE_DIRS ${LIBSNORE_INCLUDE_DIR})
|
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(LIBSNORE DEFAULT_MSG LIBSNORE_LIBRARIES LIBSNORE_INCLUDE_DIRS)
|
|
|
|
|
|
|
|
mark_as_advanced(LIBSNORE_LIBRARIES LIBSNORE_INCLUDE_DIRS)
|