a-la-karte/src/CMakeLists.txt

103 lines
2.4 KiB
Text
Raw Normal View History

# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileCopyrightText: 2026 A-La-Karte Contributors
add_executable(alakarte
main.cpp
app.cpp
gamemodel.cpp
gamesortfiltermodel.cpp
game.cpp
gamepadmanager.cpp
platformimporter.cpp
steamimporter.cpp
lutrisimporter.cpp
heroicimporter.cpp
desktopimporter.cpp
bottlesimporter.cpp
flatpakimporter.cpp
itchimporter.cpp
legendaryimporter.cpp
retroarchimporter.cpp
steamgriddb.cpp
gamelauncher.cpp
config.cpp
)
set_source_files_properties(qml/icons/app/org.kde.alakarte.svg PROPERTIES
QT_RESOURCE_ALIAS "sc-apps-org.kde.alakarte.svg"
)
qt_add_resources(alakarte alakarte_app_icon
PREFIX "/icons"
FILES
qml/icons/app/org.kde.alakarte.svg
)
target_link_libraries(alakarte PRIVATE
Qt6::Core
Qt6::Quick
Qt6::QuickControls2
Qt6::Gui
Qt6::Network
Qt6::Sql
Qt6::Concurrent
Qt6::DBus
Qt6::Svg
KF6::Kirigami
KF6::I18n
KF6::CoreAddons
KF6::ConfigCore
KF6::ConfigGui
KF6::Crash
KF6::DBusAddons
KF6::WindowSystem
)
if (TARGET Qt6::Gamepad)
target_link_libraries(alakarte PRIVATE Qt6::Gamepad)
target_compile_definitions(alakarte PRIVATE ALAKARTE_HAVE_QT_GAMEPAD=1)
endif()
ecm_add_qml_module(alakarte URI org.kde.alakarte
VERSION 1.0
QML_FILES
qml/Main.qml
qml/LibraryView.qml
qml/GameCard.qml
qml/GameDetailsSheet.qml
qml/SettingsPage.qml
qml/SidebarView.qml
qml/GameEditDialog.qml
qml/components/FocusableCard.qml
qml/components/GameGridView.qml
qml/components/SearchHeader.qml
qml/components/IconWithResourceFallback.qml
qml/components/EmptyState.qml
RESOURCES
qml/icons/brand/steam-symbolic.svg
qml/icons/brand/itchdotio-symbolic.svg
qml/icons/brand/retroarch-symbolic.svg
qml/icons/app/org.kde.alakarte.svg
SOURCES
app.h
gamemodel.h
gamesortfiltermodel.h
game.h
gamepadmanager.h
platformimporter.h
steamimporter.h
lutrisimporter.h
heroicimporter.h
desktopimporter.h
bottlesimporter.h
flatpakimporter.h
itchimporter.h
legendaryimporter.h
retroarchimporter.h
steamgriddb.h
gamelauncher.h
config.h
)
install(TARGETS alakarte ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})