2013-09-28 17:59:50 +08:00
|
|
|
# CMakeLists.txt for the ZoneMinder web files
|
|
|
|
|
|
|
|
# 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
|
2013-11-04 15:56:40 +08:00
|
|
|
install(DIRECTORY ajax css graphics includes js lang skins tools views DESTINATION "${ZM_WEBDIR}" PATTERN "*.in" EXCLUDE PATTERN "*Make*" EXCLUDE PATTERN "*cmake*" EXCLUDE REGEX "includes/config.php$" EXCLUDE)
|
2013-09-28 17:59:50 +08:00
|
|
|
install(FILES index.php README.md DESTINATION "${ZM_WEBDIR}")
|
2013-11-04 15:56:40 +08:00
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" DESTINATION "${ZM_WEBDIR}/includes")
|