2 # Find the native LibMini includes and library
4 # OSG_LIBMINI_INCLUDE_DIR, where to find mini/mini.h, etc.
5 # OSG_LIBMINI_LIBRARIES, the libraries needed to use LibMini.
6 # OSG_LIBMINI_FOUND, If false, do not try to use LibMini.
7 # also defined, but not for general use are
8 # OSG_LIBMINI_LIBRARY, where to find the LibMini library.
10 FIND_PATH(OSG_LIBMINI_INCLUDE_DIR mini/mini.h)
12 SET(OSG_LIBMINI_NAMES_RELEASE ${OSG_LIBMINI_NAMES_RELEASE} libmini)
13 FIND_LIBRARY(OSG_LIBMINI_LIBRARY_RELEASE NAMES ${OSG_LIBMINI_NAMES_RELEASE} )
15 SET(OSG_LIBMINI_NAMES_DEBUG ${OSG_LIBMINI_NAMES_DEBUG} libminid)
16 FIND_LIBRARY(OSG_LIBMINI_LIBRARY_DEBUG NAMES ${OSG_LIBMINI_NAMES_DEBUG} )
18 IF(OSG_LIBMINI_LIBRARY_DEBUG)
19 SET(OSG_LIBMINI_LIBRARIES_FOUND TRUE)
20 MARK_AS_ADVANCED(OSG_LIBMINI_LIBRARY_DEBUG)
21 ENDIF(OSG_LIBMINI_LIBRARY_DEBUG)
23 IF(OSG_LIBMINI_LIBRARY_RELEASE)
24 SET(OSG_LIBMINI_LIBRARIES_FOUND TRUE)
25 MARK_AS_ADVANCED(OSG_LIBMINI_LIBRARY_RELEASE)
26 ENDIF(OSG_LIBMINI_LIBRARY_RELEASE)
28 # handle the QUIETLY and REQUIRED arguments and set OSG_LIBMINI_FOUND to TRUE if
29 # all listed variables are TRUE
30 INCLUDE(FindPackageHandleStandardArgs)
31 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OSG_LIBMINI DEFAULT_MSG
32 OSG_LIBMINI_LIBRARIES_FOUND OSG_LIBMINI_INCLUDE_DIR)
34 #IF(OSG_LIBMINI_FOUND)
35 # SET(OSG_LIBMINI_LIBRARIES ${OSG_LIBMINI_LIBRARY})
36 #ENDIF(OSG_LIBMINI_FOUND)
38 # Deprecated declarations.
39 #SET (NATIVE_OSG_LIBMINI_INCLUDE_PATH ${OSG_LIBMINI_INCLUDE_DIR} )
40 #IF(OSG_LIBMINI_LIBRARY)
41 # GET_FILENAME_COMPONENT (NATIVE_OSG_LIBMINI_LIB_PATH ${OSG_LIBMINI_LIBRARY} PATH)
42 #ENDIF(OSG_LIBMINI_LIBRARY)
44 MARK_AS_ADVANCED(OSG_LIBMINI_LIBRARIES_FOUND OSG_LIBMINI_INCLUDE_DIR )