# ---------------------------------------------------------------------- # File: CMakeLists.txt # Author: Andreas-Joachim Peters - CERN # ---------------------------------------------------------------------- # ************************************************************************ # * EOS - the CERN Disk Storage System * # * Copyright (C) 2016 CERN/Switzerland * # * * # * This program is free software: you can redistribute it and/or modify * # * it under the terms of the GNU General Public License as published by * # * the Free Software Foundation, either version 3 of the License, or * # * (at your option) any later version. * # * * # * This program is distributed in the hope that it will be useful, * # * but WITHOUT ANY WARRANTY; without even the implied warranty of * # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * # * GNU General Public License for more details. * # * * # * You should have received a copy of the GNU General Public License * # * along with this program. If not, see .* # ************************************************************************ install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/selinux/targeted) install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/selinux/mls) install(DIRECTORY DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/selinux/strict) add_custom_target( eosfuse-selinux ALL COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/choose_selinux.sh ${CMAKE_CURRENT_BINARY_DIR}) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/eosfuse.pp DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/selinux/targeted/ PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/eosfuse.pp DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/selinux/mls/ PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/eosfuse.pp DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/selinux/strict/ PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)