cmake_minimum_required(VERSION 3.10)
project(data_installer)

# include GNUInstallDirs
include(GNUInstallDirs)

# set the data directory
set(DATA_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/yade)

# list of directories to be installed
set(DIRECTORIES_TO_INSTALL capillaryFiles checks-and-tests DEM2020Benchmark static)

# use a for loop to install the directories
foreach(directory ${DIRECTORIES_TO_INSTALL})
    install(DIRECTORY ${directory} DESTINATION ${DATA_DIR})
endforeach()
