Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cgsi-gsoap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Data Management Clients
cgsi-gsoap
Commits
28bf41bd
Commit
28bf41bd
authored
8 years ago
by
Alejandro Alvarez Ayllon
Browse files
Options
Downloads
Patches
Plain Diff
Add FindGlobus_FTP_CONTROL.cmake
parent
c8a73890
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/FindGlobus_FTP_CONTROL.cmake
+64
-0
64 additions, 0 deletions
modules/FindGlobus_FTP_CONTROL.cmake
with
64 additions
and
0 deletions
modules/FindGlobus_FTP_CONTROL.cmake
0 → 100644
+
64
−
0
View file @
28bf41bd
#
# This module detects if globus-ftp-control is installed and determines where the
# include files and libraries are.
#
# This code sets the following variables:
#
# GLOBUS_FTP_CONTROL_LIBRARIES = full path to the globus-ftp-control libraries
# GLOBUS_FTP_CONTROL_INCLUDE_DIR = include dir to be used when using the globus-ftp-control library
# GLOBUS_FTP_CONTROL_FOUND = set to true if globus-ftp-control was found successfully
#
# GLOBUS_FTP_CONTROL_LOCATION
# setting this enables search for globus-ftp-control libraries / headers in this location
find_package
(
PkgConfig
)
pkg_check_modules
(
GLOBUS_FTP_CONTROL_PKG globus-ftp-control
)
if
(
GLOBUS_FTP_CONTROL_PKG_FOUND
)
set
(
GLOBUS_FTP_CONTROL_LIBRARIES
${
GLOBUS_FTP_CONTROL_PKG_LIBRARIES
}
)
set
(
GLOBUS_FTP_CONTROL_INCLUDE_DIRS
${
GLOBUS_FTP_CONTROL_PKG_INCLUDE_DIRS
}
)
set
(
GLOBUS_FTP_CONTROL_DEFINITIONS
"
${
GLOBUS_FTP_CONTROL_PKG_CFLAGS
}
"
)
else
(
GLOBUS_FTP_CONTROL_PKG_FOUND
)
set
(
CMAKE_FIND_FRAMEWORK NEVER
)
find_library
(
GLOBUS_FTP_CONTROL_LIBRARIES
NAMES globus_ftp_control
HINTS
${
GLOBUS_FTP_CONTROL_LOCATION
}
${
CMAKE_INSTALL_PREFIX
}
/globus/*/
${
PLATFORM
}
/
${
CMAKE_INSTALL_PREFIX
}
/Grid/epel/*/
${
PLATFORM
}
/lib
${
CMAKE_INSTALL_PREFIX
}
/Grid/epel/*/
${
PLATFORM
}
/lib64
${
CMAKE_INSTALL_PREFIX
}
/opt/globus-toolkit/libexec/lib
${
GLOBUS_PREFIX
}
/libexec/lib
DOC
"The main globus-ftp-control library"
)
find_path
(
GLOBUS_FTP_CONTROL_INCLUDE_DIRS
NAMES globus_ftp_control.h
HINTS
${
GLOBUS_FTP_CONTROL_LOCATION
}
/include/*
${
CMAKE_INSTALL_PREFIX
}
/globus/*/
${
PLATFORM
}
/include
${
CMAKE_INSTALL_PREFIX
}
/Grid/epel/*/
${
PLATFORM
}
/include
${
CMAKE_INSTALL_PREFIX
}
/opt/globus-toolkit/libexec/include
${
GLOBUS_PREFIX
}
/libexec/include
DOC
"The globus-ftp-control include directory"
)
set
(
GLOBUS_FTP_CONTROL_DEFINITIONS
""
)
endif
(
GLOBUS_FTP_CONTROL_PKG_FOUND
)
if
(
GLOBUS_FTP_CONTROL_LIBRARIES
)
message
(
STATUS
"GLOBUS_FTP_CONTROL libraries:
${
GLOBUS_FTP_CONTROL_LIBRARIES
}
"
)
endif
(
GLOBUS_FTP_CONTROL_LIBRARIES
)
if
(
GLOBUS_FTP_CONTROL_INCLUDE_DIRS
)
message
(
STATUS
"GLOBUS_FTP_CONTROL include dir:
${
GLOBUS_FTP_CONTROL_INCLUDE_DIRS
}
"
)
endif
(
GLOBUS_FTP_CONTROL_INCLUDE_DIRS
)
# -----------------------------------------------------
# handle the QUIETLY and REQUIRED arguments and set GLOBUS_FTP_CONTROL_FOUND to TRUE if
# all listed variables are TRUE
# -----------------------------------------------------
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
GLOBUS_FTP_CONTROL DEFAULT_MSG
GLOBUS_FTP_CONTROL_LIBRARIES GLOBUS_FTP_CONTROL_INCLUDE_DIRS
)
mark_as_advanced
(
GLOBUS_FTP_CONTROL_INCLUDE_DIRS GLOBUS_FTP_CONTROL_LIBRARIES
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment