2013-09-28 09:59:50 +00:00
|
|
|
# CMakeLists.txt for the ZoneMinder web files
|
|
|
|
|
2014-04-30 09:16:46 +00:00
|
|
|
# Process the api subdirectory
|
|
|
|
add_subdirectory(api)
|
2013-09-28 09:59:50 +00:00
|
|
|
# Create files from the .in files
|
2013-10-31 16:10:00 +00:00
|
|
|
configure_file(includes/config.php.in "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" @ONLY)
|
2013-09-28 09:59:50 +00:00
|
|
|
|
|
|
|
# Install the web files
|
2021-01-18 13:41:08 +00:00
|
|
|
install(DIRECTORY vendor api ajax css fonts graphics includes js lang skins views DESTINATION "${ZM_WEBDIR}" PATTERN "*.in" EXCLUDE PATTERN "*Make*" EXCLUDE PATTERN "*cmake*" EXCLUDE)
|
2017-12-07 14:32:23 +00:00
|
|
|
install(FILES index.php robots.txt DESTINATION "${ZM_WEBDIR}")
|
2013-11-04 07:56:40 +00:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" DESTINATION "${ZM_WEBDIR}/includes")
|
2013-11-08 16:54:46 +00:00
|
|
|
|
2014-04-30 09:16:46 +00:00
|
|
|
# Install the api config files (if its not in the source directory)
|
|
|
|
if(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR))
|
2014-04-30 09:25:42 +00:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/api/app/Config/core.php" DESTINATION "${ZM_WEBDIR}/api/app/Config")
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/api/app/Config/database.php" DESTINATION "${ZM_WEBDIR}/api/app/Config")
|
2015-06-12 15:12:58 +00:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/api/app/Config/bootstrap.php" DESTINATION "${ZM_WEBDIR}/api/app/Config")
|
2017-05-03 18:06:41 +00:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/api/lib/Cake/bootstrap.php" DESTINATION "${ZM_WEBDIR}/api/lib/Cake")
|
2014-04-30 09:16:46 +00:00
|
|
|
endif(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR))
|