2013-09-28 17:59:50 +08:00
|
|
|
# CMakeLists.txt for the ZoneMinder database scripts
|
|
|
|
|
|
|
|
# Create files from the .in files
|
2013-11-01 00:10:00 +08:00
|
|
|
configure_file(zm_create.sql.in "${CMAKE_CURRENT_BINARY_DIR}/zm_create.sql" @ONLY)
|
2018-04-19 20:43:43 +08:00
|
|
|
configure_file(zm_update-1.31.30.sql.in "${CMAKE_CURRENT_BINARY_DIR}/zm_update-1.31.30.sql" @ONLY)
|
2021-04-10 04:46:36 +08:00
|
|
|
configure_file(zm_update-1.35.24.sql.in "${CMAKE_CURRENT_BINARY_DIR}/zm_update-1.35.24.sql" @ONLY)
|
2021-11-18 22:55:19 +08:00
|
|
|
configure_file(zm_update-1.37.4.sql.in "${CMAKE_CURRENT_BINARY_DIR}/zm_update-1.37.4.sql" @ONLY)
|
2013-09-28 17:59:50 +08:00
|
|
|
|
2013-11-04 15:56:40 +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
|
|
|
|
2013-11-04 15:56:40 +08:00
|
|
|
# Install the database upgrade scripts
|
2013-09-28 17:59:50 +08:00
|
|
|
install(FILES ${dbfileslist} DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|
|
|
|
|
2018-04-19 20:43:43 +08:00
|
|
|
# install zm_update-1.31.30.sql
|
2018-04-19 23:22:28 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm_update-1.31.30.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|
2021-04-10 09:55:07 +08:00
|
|
|
# install zm_update-1.35.24.sql
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm_update-1.35.24.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|
2021-11-18 22:55:19 +08:00
|
|
|
# install zm_update-1.37.4.sql
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/zm_update-1.37.4.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|
2018-04-19 20:43:43 +08:00
|
|
|
|
2013-11-04 15:56:40 +08:00
|
|
|
# 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-04-20 00:31:50 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/triggers.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|
2018-04-19 20:43:43 +08:00
|
|
|
|
2021-11-19 00:09:49 +08:00
|
|
|
# install manufacturers.sql
|
|
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/manufacturers.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|
|
|
|
|
|
|
|
# install models.sql
|
|
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/models.sql" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/db")
|