improved build script for installation and updated README.md

This commit is contained in:
Chris Punches
2025-03-02 01:08:07 -05:00
parent 299b8dd989
commit 0351b58d32
2 changed files with 49 additions and 2 deletions

View File

@@ -29,4 +29,14 @@ set_target_properties(info PROPERTIES
PREFIX ""
SUFFIX ".so"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/modules"
)
)
# Installation rules
install(TARGETS dpm DESTINATION bin)
install(DIRECTORY DESTINATION /etc/dpm/conf.d)
install(FILES ${CMAKE_SOURCE_DIR}/data/modules.conf DESTINATION /etc/dpm/conf.d)
# Install all .so files from build/modules to the module path
install(DIRECTORY ${CMAKE_BINARY_DIR}/modules/
DESTINATION /usr/lib/dpm/modules
FILES_MATCHING PATTERN "*.so")