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

Added Findcryptopp and Findlibuuid

parent 1d2e1ed6
Branches
Tags
No related merge requests found
# 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)
# 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)
# 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/)
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment