| … | … | @@ -1,8 +1,18 @@ |
| 1 | | |
| 2 | | # Install visualizer files to /usr/local/share/cogserver/visualizer/ |
| 3 | | INSTALL(FILES |
| 4 | | index.html |
| 5 | | README.md |
| 6 | | DESTINATION share/cogserver/visualizer |
| 1 | # |
| 2 | # Conditionally install index.html to /usr/local/share/cogserver/visualizer/ |
| 3 | # only if the directory does not exist or index.html is not already installed. |
| 4 | # This allows atomspace-viz to be installed separately and take precedence. |
| 5 | # |
| 6 | INSTALL(CODE " |
| 7 | set(DEST_DIR \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/cogserver/visualizer\") |
| 8 | set(DEST_FILE \"\${DEST_DIR}/index.html\") |
| 9 | if(NOT EXISTS \"\${DEST_DIR}\" OR NOT EXISTS \"\${DEST_FILE}\") |
| 10 | message(STATUS \"Installing: \${DEST_FILE}\") |
| 11 | file(INSTALL \"${CMAKE_CURRENT_SOURCE_DIR}/index.html\" |
| 12 | DESTINATION \"\${DEST_DIR}\") |
| 13 | else() |
| 14 | message(STATUS \"Skipping: \${DEST_FILE} (already installed by atomspace-viz)\") |
| 15 | endif() |
| 16 | " |
| 7 | 17 | COMPONENT visualizer |
| 8 | 18 | ) |