Files
automount/CMakeLists.txt
Dimitry Ishenko 87e03e8b2a v0.4
2025-01-14 23:24:02 -05:00

23 lines
600 B
CMake

cmake_minimum_required(VERSION 3.16) # focal
project(automount VERSION 0.4 LANGUAGES C)
include(GNUInstallDirs)
configure_file(util.py util.py @ONLY)
install(FILES automount monitor.py ${CMAKE_CURRENT_BINARY_DIR}/util.py
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/automount/
)
configure_file(automount.service automount.service @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/automount.service
DESTINATION lib/systemd/system/
)
install(FILES 10-default.conf
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/automount/
)
install(FILES automount.7
DESTINATION ${CMAKE_INSTALL_MANDIR}/man7/
)