2013-12-17 22:53:16 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Find IOKit framework (Mac OS X).
|
|
|
|
#
|
|
|
|
# Define:
|
|
|
|
# IOKit_FOUND
|
|
|
|
# IOKit_INCLUDE_DIR
|
|
|
|
# IOKit_LIBRARY
|
|
|
|
|
|
|
|
set(IOKit_FOUND false)
|
|
|
|
set(IOKit_INCLUDE_DIR)
|
|
|
|
set(IOKit_LIBRARY)
|
|
|
|
|
|
|
|
if(APPLE)
|
|
|
|
# The only platform it makes sense to check for IOKit
|
|
|
|
find_library(IOKit IOKit)
|
2016-05-26 23:44:27 +02:00
|
|
|
if(IOKit)
|
|
|
|
set(IOKit_FOUND true)
|
2013-12-17 22:53:16 +01:00
|
|
|
set(IOKit_INCLUDE_DIR ${IOKit})
|
2016-05-26 23:44:27 +02:00
|
|
|
set(IOKit_LIBRARY ${IOKit})
|
|
|
|
endif(IOKit)
|
2013-12-17 22:53:16 +01:00
|
|
|
endif(APPLE)
|