Add Info.plist for MacOS camera permission message
This commit is contained in:
parent
b05a6bff8f
commit
c6c96739bd
|
@ -23,5 +23,12 @@ file(
|
||||||
|
|
||||||
DESTINATION
|
DESTINATION
|
||||||
${PROJECT_BINARY_DIR} )
|
${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 )
|
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 )
|
target_link_libraries( fc2d ${OpenCV_LIBS} ${OPENGL_LIBRARIES} FreeGLUT::freeglut GLEW::glew )
|
||||||
|
|
10
Info.plist
Normal file
10
Info.plist
Normal 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>
|
Loading…
Reference in a new issue