2013-09-28 17:59:50 +08:00
|
|
|
# CMakeLists.txt for the ZoneMinder web files
|
|
|
|
|
2014-04-30 17:16:46 +08:00
|
|
|
# Process the api subdirectory
|
|
|
|
add_subdirectory(api)
|
2013-09-28 17:59:50 +08:00
|
|
|
# Process the tools/mootools subdirectory
|
2013-11-01 00:10:00 +08:00
|
|
|
add_subdirectory(tools/mootools)
|
2013-09-28 17:59:50 +08:00
|
|
|
|
|
|
|
# Create files from the .in files
|
2013-11-01 00:10:00 +08:00
|
|
|
configure_file(includes/config.php.in "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" @ONLY)
|
2013-09-28 17:59:50 +08:00
|
|
|
|
|
|
|
# Install the web files
|
2016-11-15 10:23:05 +08:00
|
|
|
install(DIRECTORY api ajax css fonts graphics includes js lang skins tools views DESTINATION "${ZM_WEBDIR}" PATTERN "*.in" EXCLUDE PATTERN "*Make*" EXCLUDE PATTERN "*cmake*" EXCLUDE)
|
2013-12-02 07:53:21 +08:00
|
|
|
install(FILES index.php DESTINATION "${ZM_WEBDIR}")
|
2013-11-04 15:56:40 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" DESTINATION "${ZM_WEBDIR}/includes")
|
2013-11-09 00:54:46 +08:00
|
|
|
|
2014-04-30 17:16:46 +08: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 17:25:42 +08: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 23:12:58 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/api/app/Config/bootstrap.php" DESTINATION "${ZM_WEBDIR}/api/app/Config")
|
2017-05-04 02:25:11 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/api/lib/Cake/bootstrap.php" DESTINATION "${ZM_WEBDIR}/api/lib/Cake")
|
2014-04-30 17:16:46 +08:00
|
|
|
endif(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR))
|
|
|
|
|
2013-11-23 05:50:59 +08:00
|
|
|
# Install the mootools symlinks (if its not in the source directory)
|
|
|
|
if(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR))
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/mootools/mootools-core.js" DESTINATION "${ZM_WEBDIR}/tools/mootools")
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/mootools/mootools-more.js" DESTINATION "${ZM_WEBDIR}/tools/mootools")
|
|
|
|
endif(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR))
|