mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Use hidapi on Mac
This allows us to support the Suunto EON Steel on Mac, assuming the matching libdivecomputer version from the Subsurface-branch. If that was compiled with the hdiapi lib then hopefully the build for Subsurface should find that library as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ff439396a5
commit
af45a2a072
1 changed files with 2 additions and 0 deletions
|
@ -285,6 +285,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|||
set(SUBSURFACE_TARGET Subsurface)
|
||||
set(PLATFORM_SRC macos.c)
|
||||
find_library(APP_SERVICES_LIBRARY ApplicationServices)
|
||||
find_library(HID_LIB HidApi)
|
||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${HID_LIB})
|
||||
set(EXTRA_LIBS ${APP_SERVICES_LIBRARY})
|
||||
set(ICON_FILE ${CMAKE_SOURCE_DIR}/packaging/macosx/Subsurface.icns)
|
||||
set(MACOSX_BUNDLE_INFO_STRING "Subsurface")
|
||||
|
|
Loading…
Reference in a new issue