Add Info.plist for MacOS camera permission message

This commit is contained in:
Epicalert 2021-01-15 18:43:30 +08:00
parent b05a6bff8f
commit c6c96739bd
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD
2 changed files with 17 additions and 0 deletions

View file

@ -23,5 +23,12 @@ file(
DESTINATION
${PROJECT_BINARY_DIR} )
if (APPLE)
file (
COPY
${PROJECT_SOURCE_DIR}/Info.plist
DESTINATION
$ {PROJECT_BINARY_DIR} )
endif (APPLE)
add_executable( fc2d src/main.cpp src/graphics.cpp src/modelpart.cpp src/cv.cpp )
target_link_libraries( fc2d ${OpenCV_LIBS} ${OPENGL_LIBRARIES} FreeGLUT::freeglut GLEW::glew )

10
Info.plist Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleDisplayName</key>
<string>Facecam2D</string>
<key>NSCameraUsageDescription</key>
<string>It's called Facecam2D what did you expect?</string>
</dict>
</plist>