mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Implemented compile capability for MacOS.
Former-commit-id: 86e560e0d4f03251ee08a648ffa6fd9a0e01ae78
This commit is contained in:
21
cmake/FindCoreFoundation.cmake
Normal file
21
cmake/FindCoreFoundation.cmake
Normal file
@@ -0,0 +1,21 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# Find IOKit framework (Mac OS X).
|
||||
#
|
||||
# Define:
|
||||
# CoreFoundation_FOUND
|
||||
# CoreFoundation_INCLUDE_DIR
|
||||
# CoreFoundation_LIBRARY
|
||||
|
||||
set(CoreFoundation_FOUND false)
|
||||
set(CoreFoundation_INCLUDE_DIR)
|
||||
set(CoreFoundation_LIBRARY)
|
||||
|
||||
if(APPLE)
|
||||
# The only platform it makes sense to check for CoreFoundation
|
||||
find_library(CoreFoundation CoreFoundation)
|
||||
if(CoreFoundation)
|
||||
set(CoreFoundation_FOUND true)
|
||||
set(CoreFoundation_INCLUDE_DIR ${CoreFoundation})
|
||||
set(CoreFoundation_LIBRARY ${CoreFoundation})
|
||||
endif(CoreFoundation)
|
||||
endif(APPLE)
|
21
cmake/FindIOKit.cmake
Normal file
21
cmake/FindIOKit.cmake
Normal file
@@ -0,0 +1,21 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# 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)
|
||||
if(IOKit)
|
||||
set(IOKit_FOUND true)
|
||||
set(IOKit_INCLUDE_DIR ${IOKit})
|
||||
set(IOKit_LIBRARY ${IOKit})
|
||||
endif(IOKit)
|
||||
endif(APPLE)
|
Reference in New Issue
Block a user