diff --git a/web/CMakeLists.txt b/web/CMakeLists.txt index dfd37c48a..a3479f595 100644 --- a/web/CMakeLists.txt +++ b/web/CMakeLists.txt @@ -11,3 +11,8 @@ install(DIRECTORY ajax css graphics includes js lang skins tools views DESTINATI install(FILES index.php README.md DESTINATION "${ZM_WEBDIR}") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" DESTINATION "${ZM_WEBDIR}/includes") +# 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))