libusb: CMake - use generic SDK on OS X, export compile commands

This commit is contained in:
Matthias Ringwald 2021-04-01 15:51:44 +02:00
parent 6e64e62b42
commit 742c132cdc

View File

@ -1,6 +1,11 @@
cmake_minimum_required (VERSION 3.5)
SET(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk)
SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(BTstack)
# fink pkgconfig
find_package(PkgConfig REQUIRED)