Skip to content

Commit

Permalink
chore: Remove base qt dependencies from package and define dependenci…
Browse files Browse the repository at this point in the history
…es based on QT version
  • Loading branch information
pktiuk committed Nov 18, 2024
1 parent 4f8c391 commit 9d3a341
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,12 @@ endif()

# Building .deb package
if(CPACK_GENERATOR STREQUAL "DEB")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qtbase5-dev (>= ${QT_REQUIRED_VERSION}), libsdl2-2.0-0 (>= ${SDL_REQUIRED_VERSION}), libc6")
if(QT_VERSION_MAJOR EQUAL 5)
# TODO use regular, not dev packages
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5widgets5 (>= ${QT_REQUIRED_VERSION}), libsdl2-2.0-0 (>= ${SDL_REQUIRED_VERSION}), libc6")
else()
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt6widgets6t64 (>= ${QT_REQUIRED_VERSION}), libsdl2-2.0-0 (>= ${SDL_REQUIRED_VERSION}), libc6")
endif(QT_VERSION_MAJOR EQUAL 5)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "pktiuk <[email protected]>")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "AntiMicroX is a graphical program used to map gamepad buttons to keyboard, mouse, scripts and macros.
Expand Down

0 comments on commit 9d3a341

Please sign in to comment.