CMakeLists.txt 499 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
cmake_minimum_required(VERSION 3.0.2)
project(cmake-extras)

include(GNUInstallDirs)

# Modules using the newer find_package() "config" extension mechanism.
install(
  DIRECTORY "src/"
  DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/"
  USE_SOURCE_PERMISSIONS
)

# Modules installed directly to CMAKE_ROOT
# TODO: migrate these to the above tree, since installing to
#       CMAKE_ROOT is frowned upon.
install(
  DIRECTORY "modules/"
  DESTINATION "${CMAKE_ROOT}/Modules/"
  USE_SOURCE_PERMISSIONS
)