diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f03942..2cd52e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,3 +38,7 @@ include_directories(mgba/include) add_executable(cgbwebcam main.c) target_link_libraries(cgbwebcam SDL3-static mgba) + +if(APPLE) + target_link_libraries(cgbwebcam PRIVATE "-framework AVFoundation") +endif()