2 # Once done this will define
4 # UUID_FOUND - system has UUID
5 # UUID_INCLUDE_DIRS - the UUID include directory
6 # UUID_LIBRARIES - Link these to use UUID
7 # UUID_DEFINITIONS - Compiler switches required for using UUID
9 # Copyright (c) 2006 Andreas Schneider <mail@cynapses.org>
11 # Redistribution and use is allowed according to the terms of the New
13 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17 if (UUID_LIBRARIES AND UUID_INCLUDE_DIRS)
20 else (UUID_LIBRARIES AND UUID_INCLUDE_DIRS)
21 find_path(UUID_INCLUDE_DIR
28 $ENV{UUID_DIR}/include
30 ${DELTA3D_EXT_DIR}/inc
31 $ENV{DELTA_ROOT}/ext/inc
40 /opt/csw/include # Blastwave
42 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;OSG_ROOT]/include
46 find_library(UUID_LIBRARY
53 ${DELTA3D_EXT_DIR}/lib
54 $ENV{DELTA_ROOT}/ext/lib
68 find_library(UUID_LIBRARY_DEBUG
75 ${DELTA3D_EXT_DIR}/lib
76 $ENV{DELTA_ROOT}/ext/lib
90 if (NOT UUID_LIBRARY AND BSD)
92 endif(NOT UUID_LIBRARY AND BSD)
94 set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR})
95 set(UUID_LIBRARIES ${UUID_LIBRARY})
97 if (UUID_INCLUDE_DIRS)
98 if (BSD OR UUID_LIBRARIES)
100 endif (BSD OR UUID_LIBRARIES)
101 endif (UUID_INCLUDE_DIRS)
104 if (NOT UUID_FIND_QUIETLY)
105 message(STATUS "Found UUID: ${UUID_LIBRARIES}")
106 endif (NOT UUID_FIND_QUIETLY)
108 if (UUID_FIND_REQUIRED)
109 message(FATAL_ERROR "Could not find UUID")
110 endif (UUID_FIND_REQUIRED)
113 # show the UUID_INCLUDE_DIRS and UUID_LIBRARIES variables only in the advanced view
114 mark_as_advanced(UUID_INCLUDE_DIRS UUID_LIBRARIES)
116 endif (UUID_LIBRARIES AND UUID_INCLUDE_DIRS)