更新 'package/CMakeLists.txt'

This commit is contained in:
zhongjin 2023-03-04 22:47:36 +08:00
parent 9be21f3c1a
commit f1ba79222b

View File

@ -9,15 +9,15 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# our .desktop file specifies --launcher, so only install it for # our .desktop file specifies --launcher, so only install it for
# a build with the launcher enabled. # a build with the launcher enabled.
if (ENABLE_QT) if (ENABLE_QT)
install(FILES org.flightgear.FlightGear.desktop DESTINATION share/applications) install(FILES com.jingweiht.FlightGear.desktop DESTINATION share/applications)
endif() endif()
# generate a metainfo file corresponding to this release # generate a metainfo file corresponding to this release
configure_file ( configure_file (
"${CMAKE_CURRENT_SOURCE_DIR}/org.flightgear.FlightGear.metainfo.in" "${CMAKE_CURRENT_SOURCE_DIR}/com.jingweiht.FlightGear.metainfo.in"
"${CMAKE_CURRENT_BINARY_DIR}/org.flightgear.FlightGear.metainfo.xml" "${CMAKE_CURRENT_BINARY_DIR}/com.jingweiht.FlightGear.metainfo.xml"
) )
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/org.flightgear.FlightGear.metainfo.xml" DESTINATION share/metainfo) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/com.jingweiht.FlightGear.metainfo.xml" DESTINATION share/metainfo)
endif() endif()