2022-10-20 20:29:11 +08:00
|
|
|
|
|
|
|
# this is the timestampe of when we ran Cmake, we could
|
|
|
|
# switch to parsing this from flightgear/version file explicity,
|
|
|
|
# but it's only needed by AppStream metainfo for the moment
|
|
|
|
|
|
|
|
string(TIMESTAMP FG_CMAKE_TIMESTAMP "%Y-%m-%d")
|
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
# our .desktop file specifies --launcher, so only install it for
|
|
|
|
# a build with the launcher enabled.
|
|
|
|
if (ENABLE_QT)
|
2023-03-04 22:47:36 +08:00
|
|
|
install(FILES com.jingweiht.FlightGear.desktop DESTINATION share/applications)
|
2022-10-20 20:29:11 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# generate a metainfo file corresponding to this release
|
|
|
|
configure_file (
|
2023-03-04 22:47:36 +08:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/com.jingweiht.FlightGear.metainfo.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/com.jingweiht.FlightGear.metainfo.xml"
|
2022-10-20 20:29:11 +08:00
|
|
|
)
|
|
|
|
|
2023-03-04 22:47:36 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/com.jingweiht.FlightGear.metainfo.xml" DESTINATION share/metainfo)
|
2022-10-20 20:29:11 +08:00
|
|
|
|
|
|
|
endif()
|