Fix cmake code to handle mime types
This commit is contained in:
1 parent
11484bb567
commit
6b4771bf83
4 files changed
+31
-9
No files matched your search
+4
-1
@@ -116,4 +116,7 @@ ENDIF()
|
||||
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin )
|
||||
INSTALL(FILES resources/playuver.desktop DESTINATION share/applications )
|
||||
INSTALL(FILES resources/playuver.png DESTINATION share/icons )
|
||||
INSTALL(FILES resources/x-raw.xml DESTINATION share/mime/video )
|
||||
INSTALL(FILES resources/playuver.xml DESTINATION share/mime/packages )
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
It comes with ABSOLUTELY NO WARRANTY, to the extent permitted by law. You may
|
||||
redistribute copies of update-mime-database under the terms of the GNU General
|
||||
Public License. For more information about these matters, see the file named
|
||||
COPYING.
|
||||
-->
|
||||
<!--
|
||||
Notes:
|
||||
- the mime types in this file are valid with the version 0.40 of the
|
||||
shared-mime-info package.
|
||||
- the "fdo #xxxxx" are the wish in the freedesktop.org bug database to include
|
||||
the mime type there.
|
||||
-->
|
||||
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
|
||||
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="video/x-raw">
|
||||
<comment>Raw YUV file</comment>
|
||||
<icon name="video-x-generic"/>
|
||||
<alias type="video/x-raw"/>
|
||||
<glob pattern="*.yuv"/>
|
||||
</mime-type>
|
||||
|
||||
</mime-info>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="video/x-raw">
|
||||
<comment>Raw YUV file</comment>
|
||||
<icon name="video-x-generic"/>
|
||||
<alias type="video/x-raw"/>
|
||||
<glob pattern="*.yuv"/>
|
||||
</mime-type>
|
||||
+2
-1
@@ -40,4 +40,5 @@ INCLUDE_DIRECTORIES( ${FFMPEG_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} )
|
||||
TARGET_LINK_LIBRARIES( PlaYUVerLib ${FFMPEG_LIBRARIES} ${OpenCV_LIBRARIES} )
|
||||
|
||||
INSTALL(FILES ${plaYUver_Lib_HEADERS} DESTINATION include )
|
||||
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libPlaYUVerLib${CMAKE_STATIC_LIBRARY_SUFFIX} DESTINATION lib )
|
||||
# INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libPlaYUVerLib${CMAKE_STATIC_LIBRARY_SUFFIX} DESTINATION lib )
|
||||
INSTALL(TARGETS PlaYUVerLib DESTINATION lib )
|
||||
Reference in new issue
Block a user