I'm trying to include SCK in a C++ project I build with CMake. This works well for projects using Apple's frameworks with C header files:
project(as_demo)
find_library(AS ApplicationServices)
add_executable(as_demo MACOSX_BUNDLE as_demo.cc)
target_link_libraries(as_demo ${AS})
I can add an ObjC mm file to this executable if it's in my project and it works a-ok. However, SCK's headers are written in ObjC and it seems like it won't work with how I have this project set up. Header files are resolvable from my project, but any headers within the header I import is not findable, and all the ObjC source is error highlighted.
This does not work:
project(sc_demo)
find_library(SCK ScreenCaptureKit)
add_executable(sc_demo MACOSX_BUNDLE sc_demo.cc)
target_link_libraries(sc_demo ${SCK})
Any suggestions?