Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Özgür Ozan Sen
ogs
Commits
72e67e36
Verified
Commit
72e67e36
authored
1 year ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] Add missing find scripts (from bilke/cmake-modules).
parent
8db8e6bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/cmake/FindLIS.cmake
+14
-0
14 additions, 0 deletions
scripts/cmake/FindLIS.cmake
scripts/cmake/FindNetCDF.cmake
+37
-0
37 additions, 0 deletions
scripts/cmake/FindNetCDF.cmake
with
51 additions
and
0 deletions
scripts/cmake/FindLIS.cmake
0 → 100644
+
14
−
0
View file @
72e67e36
# * Try to find LIS Once done, this will define
#
# LIS_FOUND LIS_INCLUDE_DIRS LIS_LIBRARIES
#
# Environment variable LIS_ROOT_DIR can be set to give hints
find_path
(
LIS_INCLUDE_DIR lis.h PATHS ENV LIS_ROOT_DIR PATH_SUFFIXES include
)
find_library
(
LIS_LIBRARY lis PATHS ENV LIS_ROOT_DIR PATH_SUFFIXES lib
)
set
(
LIS_LIBRARIES
${
LIS_LIBRARY
}
)
include
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
LIS DEFAULT_MSG LIS_LIBRARY LIS_INCLUDE_DIR
)
This diff is collapsed.
Click to expand it.
scripts/cmake/FindNetCDF.cmake
0 → 100644
+
37
−
0
View file @
72e67e36
# * Find NetCDF Find the native NetCDF includes and library
# TODO: - Check for system netcdf - Make CXX a component
# C
find_path
(
NETCDF_INCLUDES_C
NAMES netcdf.h
HINTS
${
NETCDF_ROOT
}
PATH_SUFFIXES include
)
find_library
(
NETCDF_LIBRARIES_C
NAMES netcdf
HINTS
${
NETCDF_ROOT
}
PATH_SUFFIXES lib
)
# CXX
find_path
(
NETCDF_INCLUDES_CXX
NAMES netcdf
HINTS
${
NETCDF_CXX_ROOT
}
PATH_SUFFIXES include
)
find_library
(
NETCDF_LIBRARIES_CXX
NAMES netcdf_c++4 netcdf-cxx4
HINTS
${
NETCDF_CXX_ROOT
}
PATH_SUFFIXES lib
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
NetCDF DEFAULT_MSG NETCDF_LIBRARIES_C NETCDF_LIBRARIES_CXX
NETCDF_INCLUDES_C NETCDF_INCLUDES_CXX
)
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