# The CMP0026 OLD block that used to be here was vestigial: nothing in this file
# reads a target's LOCATION property, and pkgIndex.tcl.in only substitutes
# TOLBASE_VERSION_MAJOR and TOLBASE_VERSION_MINOR. CMake 4 removed that policy
# outright -- asking for OLD is now a hard error, not a deprecation -- so keeping a
# request nobody needed stopped the whole project from configuring.
configure_file (
  "${CMAKE_CURRENT_SOURCE_DIR}/pkgIndex.tcl.in"
  "${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl"
  )

install( FILES 
  "${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl" 
  COMPONENT RUNTIME DESTINATION "${TOLBASE_DEST_DIR}" )

# USE_SOURCE_PERMISSIONS matters here: without it install(DIRECTORY) gives every
# file the default 644, and mimetex/linux32/mimetex is an executable. It was
# arriving at the installed tree without its +x bit, so the LaTeX rendering of
# the database manager could not work from an installation -- only from the
# source tree, where the bit is still there.
install( DIRECTORY
  autoscroll      markupparser  nbdbmanager      renderpane   wtree
  byswidget       markupviewer  notebookdb       rmtps_client
  mimetex         toltk         mkWidgets1.3     trycatch
  COMPONENT RUNTIME DESTINATION ${TOLBASE_DEST_DIR}
  USE_SOURCE_PERMISSIONS
  PATTERN .svn EXCLUDE )
