cmakelists: added cpack for rpm's

This commit is contained in:
Kaley, Fischer 2024-05-30 11:15:11 +02:00
parent 6eb3f64da3
commit 3bb7bf1247
2 changed files with 21 additions and 1 deletions

View file

@ -8,8 +8,19 @@ file(GLOB_RECURSE RAPID_MENU_SOURCE_FILES "src/*.cpp")
# Add the executable target for RapidMenu # Add the executable target for RapidMenu
add_executable(RapidMenu ${RAPID_MENU_SOURCE_FILES}) add_executable(RapidMenu ${RAPID_MENU_SOURCE_FILES})
install(TARGETS RapidMenu DESTINATION bin)
# Find and link against the tomlplusplus library # Find and link against the tomlplusplus library
find_package(tomlplusplus REQUIRED) find_package(tomlplusplus REQUIRED)
target_link_libraries(RapidMenu PRIVATE tomlplusplus::tomlplusplus) target_link_libraries(RapidMenu PRIVATE tomlplusplus::tomlplusplus)
set(CPACK_PACKAGE_VENDOR "DRAGONTOS")
set(CPACK_RPM_PACKAGE_REQUIRES "tomlplusplus-devel")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv3")
set(CPACK_RPM_PACKAGE_DESCRIPTION "Utilize configuration files to create runner scripts.")
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)
set(CPACK_GENERATOR RPM)
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
include(CPack)

View file

@ -6,12 +6,21 @@ Utilize configuration files to create runner scripts.
- a runner like rofi, dmenu etc - a runner like rofi, dmenu etc
# Installing # Installing
Just run this.
From source:
``` ```
make all make all
sudo make install sudo make install
``` ```
Using rpm:
```
make all
cd build
cpack -G RPM
sudo rpm -i *.rpm
```
# Usage # Usage
## Help message ## Help message