2020-11-21 14:25:22 +01:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
2020-08-26 20:51:01 +02:00
|
|
|
|
2023-01-10 19:03:03 +01:00
|
|
|
project(gta5view VERSION 1.11.0 LANGUAGES C CXX)
|
2020-08-26 20:51:01 +02:00
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2021-01-21 21:50:18 +01:00
|
|
|
set(FORCE_QT_VERSION "" CACHE STRING "Force Qt Version")
|
|
|
|
if(FORCE_QT_VERSION)
|
|
|
|
set(QT_VERSION_MAJOR ${FORCE_QT_VERSION})
|
2020-11-05 16:21:33 +01:00
|
|
|
else()
|
2021-01-21 21:50:18 +01:00
|
|
|
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
|
2020-11-05 16:21:33 +01:00
|
|
|
endif()
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Network Svg Widgets REQUIRED)
|
|
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS LinguistTools QUIET)
|
2020-08-26 20:51:01 +02:00
|
|
|
|
2023-01-27 20:09:43 +01:00
|
|
|
set(RAGEPHOTO_STATIC ON CACHE BOOL "Build libragephoto as static library")
|
|
|
|
add_subdirectory(src/libragephoto)
|
|
|
|
|
2020-09-26 16:12:55 +02:00
|
|
|
if(WIN32)
|
2020-09-26 18:52:05 +02:00
|
|
|
list(APPEND GTA5VIEW_LIBS
|
2021-02-11 20:20:52 +01:00
|
|
|
dwmapi
|
2020-09-26 16:12:55 +02:00
|
|
|
)
|
2020-09-26 18:52:05 +02:00
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DUNICODE
|
|
|
|
-D_UNICODE
|
|
|
|
-DWIN32
|
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_RESOURCES
|
|
|
|
res/app.rc
|
|
|
|
)
|
2020-09-26 16:12:55 +02:00
|
|
|
endif()
|
2021-01-28 18:39:42 +01:00
|
|
|
if(APPLE)
|
|
|
|
list(APPEND GTA5VIEW_RESOURCES
|
2021-02-11 23:34:42 +01:00
|
|
|
res/gta5view.icns
|
2021-01-28 18:39:42 +01:00
|
|
|
)
|
|
|
|
set(MACOSX_BUNDLE_BUNDLE_NAME gta5view)
|
2023-01-10 19:03:03 +01:00
|
|
|
set(MACOSX_BUNDLE_BUNDLE_VERSION ${gta5view_VERSION})
|
2021-02-11 20:20:52 +01:00
|
|
|
set(MACOSX_BUNDLE_ICON_FILE gta5view.icns)
|
2021-01-28 18:39:42 +01:00
|
|
|
set(MACOSX_BUNDLE_GUI_IDENTIFIER de.syping.gta5view)
|
2021-02-11 20:20:52 +01:00
|
|
|
set_source_files_properties(res/gta5view.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
2021-01-28 18:39:42 +01:00
|
|
|
endif()
|
2020-09-26 16:12:55 +02:00
|
|
|
|
2020-09-26 18:52:05 +02:00
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DGTA5SYNC_CMAKE
|
|
|
|
-DGTA5SYNC_PROJECT
|
|
|
|
)
|
|
|
|
|
2020-08-27 18:14:30 +02:00
|
|
|
set(GTA5VIEW_SOURCES
|
2023-01-10 19:03:03 +01:00
|
|
|
src/main.cpp
|
|
|
|
src/AboutDialog.cpp
|
|
|
|
src/AppEnv.cpp
|
|
|
|
src/CrewDatabase.cpp
|
|
|
|
src/DatabaseThread.cpp
|
|
|
|
src/ExportDialog.cpp
|
|
|
|
src/ExportThread.cpp
|
|
|
|
src/GlobalString.cpp
|
|
|
|
src/IconLoader.cpp
|
|
|
|
src/ImportDialog.cpp
|
|
|
|
src/JsonEditorDialog.cpp
|
|
|
|
src/MapLocationDialog.cpp
|
|
|
|
src/OptionsDialog.cpp
|
|
|
|
src/PictureDialog.cpp
|
|
|
|
src/PictureExport.cpp
|
|
|
|
src/PictureWidget.cpp
|
|
|
|
src/PlayerListDialog.cpp
|
|
|
|
src/ProfileDatabase.cpp
|
|
|
|
src/ProfileInterface.cpp
|
|
|
|
src/ProfileLoader.cpp
|
|
|
|
src/ProfileWidget.cpp
|
|
|
|
src/SavegameCopy.cpp
|
|
|
|
src/SavegameData.cpp
|
|
|
|
src/SavegameDialog.cpp
|
|
|
|
src/SavegameWidget.cpp
|
|
|
|
src/SidebarGenerator.cpp
|
|
|
|
src/SnapmaticEditor.cpp
|
|
|
|
src/SnapmaticPicture.cpp
|
|
|
|
src/SnapmaticWidget.cpp
|
|
|
|
src/StandardPaths.cpp
|
|
|
|
src/StringParser.cpp
|
|
|
|
src/TranslationClass.cpp
|
|
|
|
src/UserInterface.cpp
|
|
|
|
src/anpro/imagecropper.cpp
|
|
|
|
src/pcg/pcg_basic.c
|
|
|
|
src/uimod/JSHighlighter.cpp
|
|
|
|
src/uimod/UiModLabel.cpp
|
|
|
|
src/uimod/UiModWidget.cpp
|
2020-08-27 18:14:30 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(GTA5VIEW_HEADERS
|
2023-01-10 19:03:03 +01:00
|
|
|
src/config.h
|
|
|
|
src/wrapper.h
|
|
|
|
src/AboutDialog.h
|
|
|
|
src/AppEnv.h
|
|
|
|
src/CrewDatabase.h
|
|
|
|
src/DatabaseThread.h
|
|
|
|
src/ExportDialog.h
|
|
|
|
src/ExportThread.h
|
|
|
|
src/GlobalString.h
|
|
|
|
src/IconLoader.h
|
|
|
|
src/ImportDialog.h
|
|
|
|
src/JsonEditorDialog.h
|
|
|
|
src/MapLocationDialog.h
|
|
|
|
src/OptionsDialog.h
|
|
|
|
src/PictureDialog.h
|
|
|
|
src/PictureExport.h
|
|
|
|
src/PictureWidget.h
|
|
|
|
src/PlayerListDialog.h
|
|
|
|
src/ProfileDatabase.h
|
|
|
|
src/ProfileInterface.h
|
|
|
|
src/ProfileLoader.h
|
|
|
|
src/ProfileWidget.h
|
|
|
|
src/SavegameCopy.h
|
|
|
|
src/SavegameData.h
|
|
|
|
src/SavegameDialog.h
|
|
|
|
src/SavegameWidget.h
|
|
|
|
src/SidebarGenerator.h
|
|
|
|
src/SnapmaticEditor.h
|
|
|
|
src/SnapmaticPicture.h
|
|
|
|
src/SnapmaticWidget.h
|
|
|
|
src/StandardPaths.h
|
|
|
|
src/StringParser.h
|
|
|
|
src/TranslationClass.h
|
|
|
|
src/UserInterface.h
|
|
|
|
src/anpro/imagecropper.h
|
|
|
|
src/pcg/pcg_basic.h
|
|
|
|
src/uimod/JSHighlighter.h
|
|
|
|
src/uimod/UiModLabel.h
|
|
|
|
src/uimod/UiModWidget.h
|
2020-08-26 20:51:01 +02:00
|
|
|
)
|
|
|
|
|
2020-08-27 18:14:30 +02:00
|
|
|
set(GTA5VIEW_INCLUDEDIR
|
2023-01-10 19:03:03 +01:00
|
|
|
src
|
|
|
|
src/anpro
|
|
|
|
src/pcg
|
|
|
|
src/uimod
|
2020-08-27 18:14:30 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(GTA5VIEW_FORMS
|
2023-01-10 19:03:03 +01:00
|
|
|
src/AboutDialog.ui
|
|
|
|
src/ExportDialog.ui
|
|
|
|
src/ImportDialog.ui
|
|
|
|
src/JsonEditorDialog.ui
|
|
|
|
src/MapLocationDialog.ui
|
|
|
|
src/OptionsDialog.ui
|
|
|
|
src/PictureDialog.ui
|
|
|
|
src/PlayerListDialog.ui
|
|
|
|
src/ProfileInterface.ui
|
|
|
|
src/SavegameDialog.ui
|
|
|
|
src/SavegameWidget.ui
|
|
|
|
src/SnapmaticEditor.ui
|
|
|
|
src/SnapmaticWidget.ui
|
|
|
|
src/UserInterface.ui
|
2020-08-27 18:14:30 +02:00
|
|
|
)
|
|
|
|
|
2021-01-21 22:44:10 +01:00
|
|
|
set(GTA5VIEW_TRANSLATIONS
|
|
|
|
res/gta5sync_de.ts
|
|
|
|
res/gta5sync_en_US.ts
|
|
|
|
res/gta5sync_fr.ts
|
|
|
|
res/gta5sync_ko.ts
|
|
|
|
res/gta5sync_ru.ts
|
|
|
|
res/gta5sync_uk.ts
|
|
|
|
res/gta5sync_zh_TW.ts
|
|
|
|
)
|
|
|
|
|
2020-09-26 18:52:05 +02:00
|
|
|
list(APPEND GTA5VIEW_RESOURCES
|
2020-08-27 18:14:30 +02:00
|
|
|
res/global.qrc
|
2021-04-02 19:51:05 +02:00
|
|
|
res/template.qrc
|
2020-08-27 18:14:30 +02:00
|
|
|
)
|
|
|
|
set_property(SOURCE res/global.qrc PROPERTY AUTORCC_OPTIONS "-threshold;0;-compress;9")
|
|
|
|
|
2020-08-28 00:26:30 +02:00
|
|
|
if(Qt5LinguistTools_FOUND)
|
2021-01-21 22:44:10 +01:00
|
|
|
qt5_add_translation(GTA5VIEW_QMFILES
|
|
|
|
${GTA5VIEW_TRANSLATIONS}
|
2020-11-17 06:58:29 +01:00
|
|
|
res/qt5/qtbase_en_GB.ts
|
2020-08-28 00:26:30 +02:00
|
|
|
)
|
2021-01-21 22:44:10 +01:00
|
|
|
set(LINGUIST_FOUND TRUE)
|
|
|
|
elseif(Qt6LinguistTools_FOUND)
|
|
|
|
qt6_add_translation(GTA5VIEW_QMFILES
|
|
|
|
${GTA5VIEW_TRANSLATIONS}
|
|
|
|
res/qt6/qtbase_en_GB.ts
|
|
|
|
)
|
|
|
|
set(LINGUIST_FOUND TRUE)
|
2020-08-28 00:26:30 +02:00
|
|
|
else()
|
2021-01-21 22:44:10 +01:00
|
|
|
set(GTA5VIEW_QMFILES
|
2020-08-28 00:26:30 +02:00
|
|
|
res/gta5sync_de.qm
|
|
|
|
res/gta5sync_en_US.qm
|
|
|
|
res/gta5sync_fr.qm
|
|
|
|
res/gta5sync_ko.qm
|
|
|
|
res/gta5sync_ru.qm
|
|
|
|
res/gta5sync_uk.qm
|
|
|
|
res/gta5sync_zh_TW.qm
|
2020-11-17 10:20:50 +01:00
|
|
|
res/qt${QT_VERSION_MAJOR}/qtbase_en_GB.qm
|
2020-08-28 00:26:30 +02:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-08-28 12:54:39 +02:00
|
|
|
option(QCONF_BUILD "System installation intended Qconf build" OFF)
|
2020-08-28 00:26:30 +02:00
|
|
|
if(QCONF_BUILD)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DGTA5SYNC_QCONF
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
list(APPEND GTA5VIEW_RESOURCES
|
2021-04-02 19:51:05 +02:00
|
|
|
res/img.qrc
|
2020-08-28 00:26:30 +02:00
|
|
|
res/tr_g5p.qrc
|
2020-11-17 06:58:29 +01:00
|
|
|
res/qt${QT_VERSION_MAJOR}/tr_qt.qrc
|
2020-08-28 00:26:30 +02:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-01-21 21:50:18 +01:00
|
|
|
option(FLATPAK_BUILD "Flatpak modifications and optimisations" OFF)
|
2020-08-28 12:54:39 +02:00
|
|
|
if(FLATPAK_BUILD)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DGTA5SYNC_FLATPAK
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-03-26 14:58:54 +01:00
|
|
|
option(WITH_DONATE "Donate menu option and donation dialog" OFF)
|
|
|
|
if(WITH_DONATE)
|
|
|
|
set(DONATE_ADDRESSES "" CACHE STRING "Donation addresses")
|
2021-04-25 13:24:05 +02:00
|
|
|
list(APPEND GTA5VIEW_HEADERS
|
2023-01-10 19:03:03 +01:00
|
|
|
src/anpro/QrCode.h
|
2021-04-25 13:24:05 +02:00
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_SOURCES
|
2023-01-10 19:03:03 +01:00
|
|
|
src/anpro/QrCode.cpp
|
2021-04-25 13:24:05 +02:00
|
|
|
)
|
2021-03-26 14:58:54 +01:00
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DGTA5SYNC_DONATE
|
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_RESOURCES
|
|
|
|
res/donate.qrc
|
|
|
|
)
|
|
|
|
if(DONATE_ADDRESSES)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_DONATE_ADDRESSES=\"${DONATE_ADDRESSES}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2020-09-13 02:10:15 +02:00
|
|
|
option(WITH_MOTD "Developer message system directed to users" OFF)
|
|
|
|
if(WITH_MOTD)
|
2020-11-05 16:21:33 +01:00
|
|
|
set(MOTD_WEBURL "" CACHE STRING "Messages WebURL")
|
2020-09-13 02:10:15 +02:00
|
|
|
list(APPEND GTA5VIEW_HEADERS
|
2023-01-10 19:03:03 +01:00
|
|
|
src/MessageThread.h
|
2020-09-13 02:10:15 +02:00
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_SOURCES
|
2023-01-10 19:03:03 +01:00
|
|
|
src/MessageThread.cpp
|
2020-09-13 02:10:15 +02:00
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DGTA5SYNC_MOTD
|
|
|
|
)
|
|
|
|
if(MOTD_WEBURL)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_MOTD_WEBURL=\"${MOTD_WEBURL}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2020-08-30 17:39:10 +02:00
|
|
|
option(WITH_TELEMETRY "Hardware survey and basic telemetry system" OFF)
|
|
|
|
if(WITH_TELEMETRY)
|
2020-11-05 16:21:33 +01:00
|
|
|
set(TELEMETRY_AUTHID "" CACHE STRING "Telemetry AuthID")
|
|
|
|
set(TELEMETRY_AUTHPW "" CACHE STRING "Telemetry AuthPW")
|
|
|
|
set(TELEMETRY_PUSHURL "" CACHE STRING "Telemetry PushURL")
|
|
|
|
set(TELEMETRY_REGURL "" CACHE STRING "Telemetry RegURL")
|
|
|
|
set(TELEMETRY_WEBURL "" CACHE STRING "Telemetry WebURL")
|
2020-08-30 17:39:10 +02:00
|
|
|
list(APPEND GTA5VIEW_HEADERS
|
2023-01-10 19:03:03 +01:00
|
|
|
src/TelemetryClass.h
|
|
|
|
src/tmext/TelemetryClassAuthenticator.h
|
2020-08-30 17:39:10 +02:00
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_SOURCES
|
2023-01-10 19:03:03 +01:00
|
|
|
src/TelemetryClass.cpp
|
|
|
|
src/tmext/TelemetryClassAuthenticator.cpp
|
2020-08-30 17:39:10 +02:00
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_INCLUDEDIR
|
2023-01-10 19:03:03 +01:00
|
|
|
src/tmext
|
2020-08-30 17:39:10 +02:00
|
|
|
)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
-DGTA5SYNC_TELEMETRY
|
|
|
|
)
|
|
|
|
if(TELEMETRY_AUTHID AND TELEMETRY_AUTHPW AND TELEMETRY_PUSHURL AND TELEMETRY_REGURL)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_TELEMETRY_AUTHID=\"${TELEMETRY_AUTHID}\""
|
|
|
|
"-DGTA5SYNC_TELEMETRY_AUTHPW=\"${TELEMETRY_AUTHPW}\""
|
|
|
|
"-DGTA5SYNC_TELEMETRY_PUSHURL=\"${TELEMETRY_PUSHURL}\""
|
|
|
|
"-DGTA5SYNC_TELEMETRY_REGURL=\"${TELEMETRY_REGURL}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(TELEMETRY_WEBURL)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_TELEMETRY_WEBURL=\"${TELEMETRY_WEBURL}\""
|
|
|
|
)
|
|
|
|
endif()
|
2020-09-26 16:12:55 +02:00
|
|
|
if(WIN32)
|
2020-09-26 18:52:05 +02:00
|
|
|
list(APPEND GTA5VIEW_LIBS
|
2020-09-26 16:12:55 +02:00
|
|
|
d3d9
|
|
|
|
)
|
|
|
|
endif()
|
2020-08-30 17:39:10 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(GTA5VIEW_APPVER)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_APPVER=\"${GTA5VIEW_APPVER}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(GTA5VIEW_BUILDCODE)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_BUILDCODE=\"${GTA5VIEW_BUILDCODE}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(GTA5VIEW_BUILDTYPE)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_BUILDTYPE=\"${GTA5VIEW_BUILDTYPE}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(GTA5VIEW_COMMIT)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_COMMIT=\"${GTA5VIEW_COMMIT}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-09-26 18:52:05 +02:00
|
|
|
if(GTA5VIEW_INLANG)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_INLANG=\"${GTA5VIEW_INLANG}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(GTA5VIEW_LANG)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_LANG=\"${GTA5VIEW_LANG}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
if(GTA5VIEW_PLUG)
|
|
|
|
list(APPEND GTA5VIEW_DEFINES
|
|
|
|
"-DGTA5SYNC_PLUG=\"${GTA5VIEW_PLUG}\""
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-08-27 18:14:30 +02:00
|
|
|
add_executable(gta5view
|
2020-09-26 16:12:55 +02:00
|
|
|
WIN32 MACOSX_BUNDLE
|
2020-08-28 00:26:30 +02:00
|
|
|
${GTA5VIEW_HEADERS}
|
2020-08-27 18:14:30 +02:00
|
|
|
${GTA5VIEW_SOURCES}
|
|
|
|
${GTA5VIEW_FORMS}
|
|
|
|
${GTA5VIEW_RESOURCES}
|
|
|
|
)
|
|
|
|
|
2021-01-21 22:44:10 +01:00
|
|
|
if(LINGUIST_FOUND AND QCONF_BUILD)
|
|
|
|
add_custom_target(translations DEPENDS ${GTA5VIEW_QMFILES})
|
2020-08-28 00:26:30 +02:00
|
|
|
add_dependencies(gta5view translations)
|
|
|
|
endif()
|
|
|
|
|
2020-08-26 20:51:01 +02:00
|
|
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.16.0")
|
2023-01-10 19:03:03 +01:00
|
|
|
target_precompile_headers(gta5view PRIVATE src/config.h)
|
2020-08-26 20:51:01 +02:00
|
|
|
endif()
|
|
|
|
|
2020-09-26 16:12:55 +02:00
|
|
|
if(Qt5Core_VERSION VERSION_GREATER_EQUAL "5.14.0")
|
|
|
|
qt5_import_plugins(gta5view INCLUDE Qt5::QSvgPlugin)
|
|
|
|
endif()
|
|
|
|
|
2020-08-27 18:14:30 +02:00
|
|
|
target_compile_definitions(gta5view PRIVATE ${GTA5VIEW_DEFINES})
|
2023-01-27 20:09:43 +01:00
|
|
|
target_include_directories(gta5view PRIVATE ${GTA5VIEW_INCLUDEDIR} ${RAGEPHOTO_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(gta5view PRIVATE Qt${QT_VERSION_MAJOR}::Network Qt${QT_VERSION_MAJOR}::Svg Qt${QT_VERSION_MAJOR}::Widgets ragephoto ${GTA5VIEW_LIBS})
|
2020-08-27 18:14:30 +02:00
|
|
|
|
|
|
|
install(TARGETS gta5view DESTINATION bin)
|
2020-08-28 12:54:39 +02:00
|
|
|
install(FILES res/de.syping.gta5view.desktop DESTINATION share/applications)
|
2020-10-20 09:31:22 +02:00
|
|
|
install(FILES res/de.syping.gta5view.metainfo.xml DESTINATION share/metainfo)
|
2021-05-27 02:28:41 +02:00
|
|
|
install(FILES res/de.syping.gta5view.xml DESTINATION share/mime/packages)
|
2020-08-28 22:11:52 +02:00
|
|
|
install(FILES res/gta5view-16.png DESTINATION share/icons/hicolor/16x16/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-24.png DESTINATION share/icons/hicolor/24x24/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-32.png DESTINATION share/icons/hicolor/32x32/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-48.png DESTINATION share/icons/hicolor/48x48/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-64.png DESTINATION share/icons/hicolor/64x64/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-96.png DESTINATION share/icons/hicolor/96x96/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-128.png DESTINATION share/icons/hicolor/128x128/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-256.png DESTINATION share/icons/hicolor/256x256/apps RENAME de.syping.gta5view.png)
|
|
|
|
install(FILES res/gta5view-512.png DESTINATION share/icons/hicolor/512x512/apps RENAME de.syping.gta5view.png)
|
2020-08-28 00:26:30 +02:00
|
|
|
if(QCONF_BUILD)
|
2021-04-02 19:51:05 +02:00
|
|
|
include(res/img.cmake)
|
|
|
|
install(FILES ${GTA5VIEW_IMGFILES} DESTINATION share/gta5view/resources)
|
2021-01-21 22:44:10 +01:00
|
|
|
install(FILES ${GTA5VIEW_QMFILES} DESTINATION share/gta5view/translations)
|
2020-08-28 00:26:30 +02:00
|
|
|
endif()
|