PageRenderTime 312ms CodeModel.GetById 139ms app.highlight 1ms RepoModel.GetById 103ms app.codeStats 0ms

/CMakeModules/FindQTweetLib.cmake

http://github.com/tomahawk-player/tomahawk
CMake | 31 lines | 13 code | 7 blank | 11 comment | 0 complexity | 40401b2c7d5df25a12504d5652893e26 MD5 | raw file
 1# - Try to find QTweetLib
 2#
 3#  QTWEETLIB_FOUND - system has QTweetLib
 4#  QTWEETLIB_INCLUDE_DIRS - the QTweetLib include directories
 5#  QTWEETLIB_LIBRARIES - link these to use QTweetLib
 6#
 7# (c) Dominik Schmidt <dev@dominik-schmidt.de>
 8#
 9
10# Dependencies
11find_package(Qt4 REQUIRED)
12
13# Include dir
14find_path(QTWEETLIB_INCLUDE_DIR
15  NAMES QTweetLib/qtweetlib_global.h
16  PATHS ${KDE4_INCLUDE_DIR}
17)
18
19# Finally the library itself
20find_library(QTWEETLIB_LIBRARY
21  NAMES QTweetLib
22  PATHS ${KDE4_LIB_DIR}
23)
24
25SET( QTWEETLIB_LIBRARIES  ${QTWEETLIB_LIBRARY} ${QJSON_LIBRARIES} )
26
27INCLUDE(FindPackageHandleStandardArgs)
28FIND_PACKAGE_HANDLE_STANDARD_ARGS(QTweetLib DEFAULT_MSG QTWEETLIB_LIBRARY QTWEETLIB_INCLUDE_DIR)
29
30MARK_AS_ADVANCED(QTWEETLIB_LIBRARIES QTWEETLIB_INCLUDE_DIR)
31