Move the PeerPtr declaration out of types.h
[quassel.git] / cmake / FindLibsnore.cmake
1 # - Try to find the libsnore library
2 #  Once done this will define
3 #
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 #  Copyright 2013-2014 Patrick von Reth <vonreth@kde.org>
8
9 find_path(LIBSNORE_INCLUDE_DIR
10   NAMES snore/core/snore.h
11   PATHS ${KDE4_INCLUDE_DIR}
12 )
13
14 find_library(LIBSNORE_LIBRARY
15   NAMES
16   libsnore
17   snore
18   PATHS ${KDE4_LIB_DIR}
19 )
20
21 set(LIBSNORE_LIBRARIES ${LIBSNORE_LIBRARY})
22 set(LIBSNORE_INCLUDE_DIRS ${LIBSNORE_INCLUDE_DIR})
23
24 include(FindPackageHandleStandardArgs)
25 find_package_handle_standard_args(LIBSNORE DEFAULT_MSG LIBSNORE_LIBRARIES LIBSNORE_INCLUDE_DIRS)
26
27 mark_as_advanced(LIBSNORE_LIBRARIES LIBSNORE_INCLUDE_DIRS)