CMake: Add preliminary CPack support

We'll tune it later.
This commit is contained in:
2025-09-16 22:19:48 -04:00
parent 0788bbd799
commit eeaa4ed2df
5 changed files with 181 additions and 0 deletions
+19
View File
@@ -75,3 +75,22 @@ target_link_libraries(salmanoff
add_all_daps_dependencies()
install(TARGETS salmanoff DESTINATION bin)
# Install device configuration files (preprocessed .daps files)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devices/
DESTINATION share/salmanoff/devices
FILES_MATCHING PATTERN "*.daps"
)
# Install documentation
install(FILES README.md DESTINATION share/doc/salmanoff)
install(FILES LICENSE DESTINATION share/doc/salmanoff)
# Install example configurations if they exist
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/examples")
install(DIRECTORY examples/ DESTINATION share/salmanoff/examples)
endif()
# Include CPack configuration
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPackConfig.cmake)
include(CPack)