CMakeLists.txt 725 B

12345678910111213141516
  1. # Install Vim files to a typical system integration directory.
  2. # Packagers can set CMake_INSTALL_VIMFILES_DIR to control this.
  3. if(NOT CMake_INSTALL_VIMFILES_DIR)
  4. set(CMake_INSTALL_VIMFILES_DIR ${CMAKE_XDGDATA_DIR}/vim/vimfiles)
  5. endif()
  6. install(DIRECTORY vim/indent vim/syntax DESTINATION ${CMake_INSTALL_VIMFILES_DIR})
  7. # Install Emacs files to a typical system integration directory.
  8. # Packagers can set CMake_INSTALL_EMACS_DIR to control this.
  9. if(NOT CMake_INSTALL_EMACS_DIR)
  10. set(CMake_INSTALL_EMACS_DIR ${CMAKE_XDGDATA_DIR}/emacs/site-lisp)
  11. endif()
  12. install(FILES cmake-mode.el DESTINATION ${CMake_INSTALL_EMACS_DIR})
  13. install(FILES cmake.m4 DESTINATION ${CMAKE_XDGDATA_DIR}/aclocal)
  14. add_subdirectory (bash-completion)