Commit 81c2ea56 authored by Steven Murray's avatar Steven Murray
Browse files

CMakeLists.txt of cmdline now uses Findxrootdclient.cmake

parent aa3b2675
# - Find xrootclient
# Finds the header files of xrootd-devel by searching for XrdVersion.hh
#
# XROOTD_FOUND - true if xrootd has been found
# XROOTD_INCLUDE_DIR - location of the xrootd-devel header files
# words the header files that do not contribute to
# the xrootd ABI.
# XROOTD_XRDCL_LIB - location of the XrdCl library
# XROOTD_XRDCLIENT_LIB - location of the XrdClient library
# Be silent if XROOTD_INCLUDE_DIR is already cached
if (XROOTD_INCLUDE_DIR)
set(XROOTD_FIND_QUIETLY TRUE)
endif (XROOTD_INCLUDE_DIR)
find_path (XROOTD_INCLUDE_DIR XrdVersion.hh
PATH_SUFFIXES include/xrootd
)
find_library (XROOTD_XRDCL_LIB XrdCl)
find_library (XROOTD_XRDCLIENT_LIB XrdClient)
message (STATUS "XROOTD_INCLUDE_DIR = ${XROOTD_INCLUDE_DIR}")
message (STATUS "XROOTD_XRDCL_LIB = ${XROOTD_XRDCL_LIB}")
message (STATUS "XROOTD_XRDCLIENT_LIB = ${XROOTD_XRDCLIENT_LIB}")
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (xrootd DEFAULT_MSG
XROOTD_INCLUDE_DIR
XROOTD_XRDCL_LIB
XROOTD_XRDCLIENT_LIB)
...@@ -18,8 +18,8 @@ cmake_minimum_required (VERSION 2.6) ...@@ -18,8 +18,8 @@ cmake_minimum_required (VERSION 2.6)
list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package (cryptopp REQUIRED) find_package (cryptopp REQUIRED)
find_package (xrootd REQUIRED) find_package (xrootdclient REQUIRED)
include_directories (${XROOTD_INCLUDE_DIR} ${XROOTD_PRIVATE_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}) include_directories (${XROOTD_INCLUDE_DIR} ${CMAKE_SOURCE_DIR})
add_executable (cta CTACmdMain.cpp Configuration.cpp) add_executable (cta CTACmdMain.cpp Configuration.cpp)
target_link_libraries (cta ${XROOTD_XRDCL_LIB} cryptopp) target_link_libraries (cta ${XROOTD_XRDCL_LIB} cryptopp)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment