From 8bd66d746c4078ff86e674fab91a93aea9a236fe Mon Sep 17 00:00:00 2001 From: Anastasia Karachaliou <anastasia.karachaliou@cern.ch> Date: Mon, 16 Oct 2017 18:29:23 +0200 Subject: [PATCH] Adding CMakeLists.txt file to the subdirectories mediachanger/castorrmc/CMakeLists.txt mediachanger/castorrmc/common/CMakeLists.txt mediachanger/castorrmc/rmc/CMakeLists.txt --- mediachanger/castorrmc/CMakeLists.txt | 19 ++++++++ mediachanger/castorrmc/common/CMakeLists.txt | 35 +++++++++++++++ mediachanger/castorrmc/rmc/CMakeLists.txt | 46 ++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 mediachanger/castorrmc/CMakeLists.txt create mode 100644 mediachanger/castorrmc/common/CMakeLists.txt create mode 100644 mediachanger/castorrmc/rmc/CMakeLists.txt diff --git a/mediachanger/castorrmc/CMakeLists.txt b/mediachanger/castorrmc/CMakeLists.txt new file mode 100644 index 0000000000..44891b4749 --- /dev/null +++ b/mediachanger/castorrmc/CMakeLists.txt @@ -0,0 +1,19 @@ +# The CERN Tape Archive (CTA) project +# Copyright (C) 2015 CERN +# +# 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 <http://www.gnu.org/licenses/>. +cmake_minimum_required (VERSION 2.6) + +add_subdirectory(common) +add_subdirectory(rmc) diff --git a/mediachanger/castorrmc/common/CMakeLists.txt b/mediachanger/castorrmc/common/CMakeLists.txt new file mode 100644 index 0000000000..eb7c5ae303 --- /dev/null +++ b/mediachanger/castorrmc/common/CMakeLists.txt @@ -0,0 +1,35 @@ +# The CERN Tape Archive (CTA) project +# Copyright (C) 2015 CERN +# +# 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 <http://www.gnu.org/licenses/>. +cmake_minimum_required (VERSION 2.6) + +include_directories (${PROJECT_SOURCE_DIR}/mediachanger/castorrmc/h) + +set (CTARMCCOMMON_LIB_SRC_FILES + Cdomainname.c + Cglobals.c + Cinitdaemon.c + Cnetdb.c + Csnprintf.c + getconfent.c + marshall.c + readc.c + serror.c + socket.c + socket_timeout.c + strerror_r_wrapper.cpp + util.c) + +add_library(ctarmccommon ${CTARMCCOMMON_LIB_SRC_FILES}) diff --git a/mediachanger/castorrmc/rmc/CMakeLists.txt b/mediachanger/castorrmc/rmc/CMakeLists.txt new file mode 100644 index 0000000000..10ac7d0708 --- /dev/null +++ b/mediachanger/castorrmc/rmc/CMakeLists.txt @@ -0,0 +1,46 @@ +# The CERN Tape Archive (CTA) project +# Copyright (C) 2015 CERN +# +# 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 <http://www.gnu.org/licenses/>. +cmake_minimum_required (VERSION 2.6) + +include_directories (${PROJECT_SOURCE_DIR}/mediachanger/castorrmc/h) + +set (RMCD_SRC_FILES + rmc_serv.c + rmc_logit.c + rmc_logreq.c + rmc_marshall_element.c + rmc_procreq.c + rmc_sendrep.c + rmc_send_scsi_cmd.c + rmc_serv.c + rmc_smcsubr.c +) +add_executable(rmcd ${RMCD_SRC_FILES}) +target_link_libraries(rmcd ctarmccommon) + +set (SMC_SRC_FILES + rmc_dismount.c + rmc_errmsg.c + rmc_export.c + rmc_find_cartridge.c + rmc_get_geometry.c + rmc_import.c + rmc_mount.c + rmc_read_elem_status.c + send2rmc.c + smc.c) +add_executable(smc ${SMC_SRC_FILES}) +target_link_libraries(smc ctarmccommon) -- GitLab