zoneminder/db/CMakeLists.txt

17 lines
683 B
CMake
Raw Normal View History

2013-09-28 17:59:50 +08:00
# CMakeLists.txt for the ZoneMinder database scripts
# Create files from the .in files
configure_file(zm_create.sql.in "${CMAKE_CURRENT_BINARY_DIR}/zm_create.sql" @ONLY)
2013-09-28 17:59:50 +08:00
# Glob all database upgrade scripts
file(GLOB dbfileslist RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "zm_update-*.sql")
2013-09-28 17:59:50 +08:00
# Install the database upgrade scripts
2013-09-28 17:59:50 +08:00
install(FILES ${dbfileslist} DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
# install zm_create.sql
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm_create.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
2018-02-23 20:46:24 +08:00
# install triggers.sql
2018-02-28 23:18:38 +08:00
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/triggers.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")