Skip to content
Snippets Groups Projects
Commit 8f4befdd authored by Steven Murray's avatar Steven Murray
Browse files

castor/tape/tpcp/CMakeLists.txt now buils all of its directory.

parent c08f206e
Branches
Tags
No related merge requests found
......@@ -206,6 +206,7 @@ add_subdirectory (castor)
add_subdirectory (common)
add_subdirectory (dlf)
add_subdirectory (ns)
add_subdirectory (rfio)
add_subdirectory (rmc)
add_subdirectory (security)
add_subdirectory (tape)
......
......@@ -22,7 +22,8 @@
#
cmake_minimum_required (VERSION 2.6)
add_subdirectory (gatewayprotocol)
add_subdirectory (legacymsg)
add_subdirectory (net)
#add_subdirectory (tpcp)
add_subdirectory (tpcp)
add_subdirectory (utils)
#
# castor/tape/gatewayprotocol/CMakeLists.txt
#
# This file is part of the Castor project.
# See http://castor.web.cern.ch/castor
#
# Copyright (C) 2003 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 2
# 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, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
# Steven.Murray@cern.ch
#
cmake_minimum_required (VERSION 2.6)
################################################################################
# Rules to build and install libcastortapegatewayprotocol.so
################################################################################
set (TAPEGATEWAYPROTOCOL_LIB_SRC_FILES
../tapegateway/BaseFileInfoStruct.cpp
../tapegateway/ClientType.cpp
../tapegateway/DumpNotification.cpp
../tapegateway/DumpParameters.cpp
../tapegateway/DumpParametersRequest.cpp
../tapegateway/EndNotification.cpp
../tapegateway/EndNotificationErrorReport.cpp
../tapegateway/FileErrorReportStruct.cpp
../tapegateway/FileMigratedNotificationStruct.cpp
../tapegateway/FileMigrationReportList.cpp
../tapegateway/FileRecalledNotificationStruct.cpp
../tapegateway/FileRecallReportList.cpp
../tapegateway/FilesListRequest.cpp
../tapegateway/FilesToMigrateList.cpp
../tapegateway/FilesToMigrateListRequest.cpp
../tapegateway/FilesToRecallList.cpp
../tapegateway/FilesToRecallListRequest.cpp
../tapegateway/FileToMigrateStruct.cpp
../tapegateway/FileToRecallStruct.cpp
../tapegateway/GatewayMessage.cpp
../tapegateway/NoMoreFiles.cpp
../tapegateway/NotificationAcknowledge.cpp
../tapegateway/PingNotification.cpp
../tapegateway/PositionCommandCode.cpp
../tapegateway/Volume.cpp
../tapegateway/VolumeMode.cpp
../tapegateway/VolumeRequest.cpp
../../io/StreamDumpNotificationCnv.cpp
../../io/StreamDumpParametersCnv.cpp
../../io/StreamDumpParametersRequestCnv.cpp
../../io/StreamEndNotificationCnv.cpp
../../io/StreamEndNotificationErrorReportCnv.cpp
../../io/StreamFileErrorReportStructCnv.cpp
../../io/StreamFileMigratedNotificationStructCnv.cpp
../../io/StreamFileMigrationReportListCnv.cpp
../../io/StreamFileRecalledNotificationStructCnv.cpp
../../io/StreamFileRecallReportListCnv.cpp
../../io/StreamFilesListRequestCnv.cpp
../../io/StreamFilesToMigrateListCnv.cpp
../../io/StreamFilesToMigrateListRequestCnv.cpp
../../io/StreamFilesToRecallListCnv.cpp
../../io/StreamFilesToRecallListRequestCnv.cpp
../../io/StreamFileToMigrateStructCnv.cpp
../../io/StreamFileToRecallStructCnv.cpp
../../io/StreamNoMoreFilesCnv.cpp
../../io/StreamNotificationAcknowledgeCnv.cpp
../../io/StreamPingNotificationCnv.cpp
../../io/StreamVolumeCnv.cpp
../../io/StreamVolumeRequestCnv.cpp)
add_library (castortapegatewayprotocol SHARED
${TAPEGATEWAYPROTOCOL_LIB_SRC_FILES})
set_target_properties (castortapegatewayprotocol
PROPERTIES SOVERSION ${MAJOR_CASTOR_VERSION})
#target_link_libraries (castortapegatewayprotocol castorcommon)
install (TARGETS castortapegatewayprotocol DESTINATION ${CASTOR_DEST_LIB_DIR})
......@@ -36,7 +36,47 @@ set (DUMPTP_SRC_FILES
TapeFseqRangeSequence.cpp
TpcpCommand.cpp)
add_executable (dumptp ${DUMPTP_SRC_FILES})
#target_link_libraries (castortapetpcp castorcommon castorclient castortapeutils)
target_link_libraries (dumptp castorcommon castortapeutils castorvdqm castorvmgr)
target_link_libraries (dumptp castorcommon castorrfio castortapegatewayprotocol
castortapenet castortapeutils castorvdqm castorvmgr)
install (TARGETS dumptp DESTINATION ${CASTOR_DEST_LIB_DIR})
CastorInstallExeManPage (dumptp)
################################################################################
# Rules to build and install readtp
################################################################################
set (READTP_SRC_FILES
Helper.cpp
ReadTpCommand.cpp
ReadTpMain.cpp
StreamOperators.cpp
TapeFileSequenceParser.cpp
TapeFseqRange.cpp
TapeFseqRangeListSequence.cpp
TapeFseqRangeSequence.cpp
TpcpCommand.cpp)
add_executable (readtp ${READTP_SRC_FILES})
target_link_libraries (readtp castorcommon castorrfio
castortapegatewayprotocol
castortapenet castortapeutils castorvdqm castorvmgr)
install (TARGETS readtp DESTINATION ${CASTOR_DEST_LIB_DIR})
CastorInstallExeManPage (readtp)
################################################################################
# Rules to build and install writetp
################################################################################
set (WRITETP_SRC_FILES
Helper.cpp
StreamOperators.cpp
TapeFileSequenceParser.cpp
TapeFseqRange.cpp
TapeFseqRangeListSequence.cpp
TapeFseqRangeSequence.cpp
TpcpCommand.cpp
WriteTpCommand.cpp
WriteTpMain.cpp)
add_executable (writetp ${WRITETP_SRC_FILES})
target_link_libraries (writetp castorcommon castorrfio
castortapegatewayprotocol
castortapenet castortapeutils castorvdqm castorvmgr)
install (TARGETS writetp DESTINATION ${CASTOR_DEST_LIB_DIR})
CastorInstallExeManPage (writetp)
#
# rfio/CMakeLists.txt
#
# This file is part of the Castor project.
# See http://castor.web.cern.ch/castor
#
# Copyright (C) 2003 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 2
# 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, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
# Steven.Murray@cern.ch
#
cmake_minimum_required (VERSION 2.6)
################################################################################
# Rules to build and install libcastorrfio.so
################################################################################
set (RFIO_LIB_SRC_FILES access.c alrm.c chdir.c checkkey.c chmod.c chown.c
close.c closedir.c connect.c error.c fchmod.c fchown.c fclose.c feof.c
ferror.c fflush.c fileno.c fio.c fopen.c fread.c fseek.c fstat.c ftell.c
fwrite.c getc.c getcwd.c lockf.c lseek.c lstat.c lun2fn.c misc.c mkdir.c
mstat.c msymlink.c munlink.c open.c opendir.c parse.c pclose.c popen.c
pread.c preseek.c pwrite.c read.c readdir.c readlink.c rename.c rewinddir.c
rfio_HsmIf.c rfio_rdirfdt.c rfio_rfilefdt.c rfstatfs.c rmdir.c setopt.c stat.c
statfs.c stream.c switch_req.c symlink.c unlink.c write.c xyclose.c xyopen.c
xyread.c xywrite.c fopen64.c fseeko64.c fstat64.c ftello64.c lockf64.c
lseek64.c open64.c preseek64.c read64.c stream64.c write64.c RfioTURL.c)
add_library (castorrfio SHARED ${RFIO_LIB_SRC_FILES})
set_target_properties (castorrfio PROPERTIES
SOVERSION ${MAJOR_CASTOR_VERSION}
COMPILE_DEFINITIONS USE_XFSPREALLOC)
target_link_libraries (castorrfio castorns)
install (TARGETS castorrfio DESTINATION ${CASTOR_DEST_LIB_DIR})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment