Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
5c329bcf
Commit
5c329bcf
authored
Mar 15, 2016
by
Steven Murray
Browse files
Added Findcryptopp and Findlibuuid
parent
92147d9e
Changes
4
Hide whitespace changes
Inline
Side-by-side
cmake/Findcryptopp.cmake
0 → 100644
View file @
5c329bcf
# 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/>.
# This module will set the following variables:
# CRYPTOPP_FOUND
# CRYPTOPP_INCLUDE_DIRS
# CRYPTOPP_LIBRARIES
find_path
(
CRYPTOPP_INCLUDE_DIRS
base64.h
PATHS /usr/include/cryptopp
NO_DEFAULT_PATH
)
find_library
(
CRYPTOPP_LIBRARIES
NAME cryptopp
PATHS /usr/lib64
NO_DEFAULT_PATH
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
cryptopp DEFAULT_MSG
CRYPTOPP_INCLUDE_DIRS CRYPTOPP_LIBRARIES
)
cmake/Findlibuuid.cmake
0 → 100644
View file @
5c329bcf
# 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/>.
# This module will set the following variables:
# LIBUUID_FOUND
# LIBUUID_INCLUDE_DIRS
# LIBUUID_LIBRARIES
find_path
(
LIBUUID_INCLUDE_DIRS
uuid.h
PATHS /usr/include/uuid
NO_DEFAULT_PATH
)
find_library
(
LIBUUID_LIBRARIES
NAME uuid
PATHS /usr/lib64
NO_DEFAULT_PATH
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
libuuid DEFAULT_MSG
LIBUUID_INCLUDE_DIRS LIBUUID_LIBRARIES
)
cmdline/CMakeLists.txt
View file @
5c329bcf
# 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
)
list
(
APPEND CMAKE_MODULE_PATH
${
PROJECT_SOURCE_DIR
}
/cmake
)
find_package
(
cryptopp REQUIRED
)
find_package
(
xrootd REQUIRED
)
include_directories
(
${
XROOTD_INCLUDE_DIR
}
${
XROOTD_PRIVATE_INCLUDE_DIR
}
${
CMAKE_SOURCE_DIR
}
)
...
...
@@ -8,4 +25,4 @@ add_executable (cta CTACmdMain.cpp CTACmd.cpp)
target_link_libraries
(
cta
${
XROOTD_XRDCL_LIB
}
ctacommon cryptopp ctautils
)
install
(
TARGETS cta DESTINATION usr/bin
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/tapeserver/
)
\ No newline at end of file
include_directories
(
${
CMAKE_SOURCE_DIR
}
/tapeserver/
)
common/CMakeLists.txt
View file @
5c329bcf
...
...
@@ -19,6 +19,7 @@ cmake_minimum_required (VERSION 2.6)
find_package
(
binutils REQUIRED
)
find_package
(
libattr REQUIRED
)
find_package
(
libcap REQUIRED
)
find_package
(
libuuid REQUIRED
)
set
(
COMMON_LIB_SRC_FILES
dataStructures/AdminHost.cpp
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment