RapidMenu/CMakeLists.txt

27 lines
866 B
Text
Raw Normal View History

2024-01-11 17:04:31 +01:00
cmake_minimum_required(VERSION 3.19)
project(RapidMenu)
set(CMAKE_CXX_STANDARD 23)
2024-01-11 17:40:32 +01:00
# Add the path to the source files for RapidMenu
file(GLOB_RECURSE RAPID_MENU_SOURCE_FILES "src/*.cpp")
2024-01-11 17:04:31 +01:00
2024-01-11 17:40:32 +01:00
# Add the executable target for RapidMenu
add_executable(RapidMenu ${RAPID_MENU_SOURCE_FILES})
2024-05-30 11:15:11 +02:00
install(TARGETS RapidMenu DESTINATION bin)
2024-01-11 17:04:31 +01:00
# Find and link against the tomlplusplus library
find_package(tomlplusplus REQUIRED)
target_link_libraries(RapidMenu PRIVATE tomlplusplus::tomlplusplus)
2024-05-30 11:15:11 +02:00
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)