Warning, /multimedia/amarok/cmake/modules/FindNjb.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the libnjb library
0002 # Once done this will define
0003 #
0004 #  NJB_FOUND - system has libnjb
0005 #  NJB_INCLUDE_DIR - the libnjb include directory
0006 #  NJB_LIBRARIES - Link these to use libnjb
0007 #  NJB_DEFINITIONS - Compiler switches required for using libnjb
0008 #
0009 
0010 if (NJB_INCLUDE_DIR AND NJB_LIBRARIES)
0011 
0012   # in cache already
0013   set(NJB_FOUND TRUE)
0014 
0015 else ()
0016   if(NOT WIN32)
0017     # use pkg-config to get the directories and then use these values
0018     # in the FIND_PATH() and FIND_LIBRARY() calls
0019     include(FindPkgConfig)
0020   
0021     pkg_check_modules(_NJB libnjb)
0022   
0023     set(NJB_DEFINITIONS ${_NJB_CFLAGS})
0024   endif()
0025 
0026   find_path(NJB_INCLUDE_DIR libnjb.h
0027     ${_NJB_INCLUDE_DIRS}
0028   )
0029   
0030   find_library(NJB_LIBRARIES NAMES njb
0031     PATHS
0032     ${_NJB_LIBRARY_DIRS}
0033   )
0034  
0035 
0036   include(FindPackageHandleStandardArgs)
0037   find_package_handle_standard_args(Njb DEFAULT_MSG NJB_INCLUDE_DIR NJB_LIBRARIES )
0038   
0039   mark_as_advanced(NJB_INCLUDE_DIR NJB_LIBRARIES)
0040   
0041 endif ()