Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
2a4300dd
Commit
2a4300dd
authored
Jan 21, 2015
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: search CMAKE_PREFIX_PATH when finding external libs
parent
77327abb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
12 deletions
+61
-12
CMake/FindEXPAT.cmake
CMake/FindEXPAT.cmake
+6
-2
CMake/FindLibKML.cmake
CMake/FindLibKML.cmake
+31
-8
CMake/FindMuParser.cmake
CMake/FindMuParser.cmake
+4
-0
CMake/FindMuParserX.cmake
CMake/FindMuParserX.cmake
+4
-0
CMake/FindOssim.cmake
CMake/FindOssim.cmake
+12
-2
CMake/FindTinyXML.cmake
CMake/FindTinyXML.cmake
+4
-0
No files found.
CMake/FindEXPAT.cmake
View file @
2a4300dd
...
...
@@ -19,10 +19,14 @@
# License text for the above reference.)
# Look for the header file.
find_path
(
EXPAT_INCLUDE_DIR NAMES expat.h
)
find_path
(
EXPAT_INCLUDE_DIR NAMES expat.h
PATHS
${
CMAKE_PREFIX_PATH
}
/include
)
# Look for the library.
find_library
(
EXPAT_LIBRARY NAMES expat libexpat
)
find_library
(
EXPAT_LIBRARY NAMES expat libexpat
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
# handle the QUIETLY and REQUIRED arguments and set EXPAT_FOUND to TRUE if
# all listed variables are TRUE
...
...
CMake/FindLibKML.cmake
View file @
2a4300dd
...
...
@@ -11,22 +11,45 @@ if( LIBKML_INCLUDE_DIR )
set
(
LibKML_FIND_QUIETLY TRUE
)
endif
()
find_path
(
LIBKML_INCLUDE_DIR kml/dom.h
)
find_path
(
LIBKML_INCLUDE_DIR kml/dom.h
PATHS
${
CMAKE_PREFIX_PATH
}
/include
)
find_library
(
LIBKML_BASE_LIBRARY
NAMES kmlbase
)
NAMES kmlbase
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
find_library
(
LIBKML_CONVENIENCE_LIBRARY
NAMES kmlconvenience
)
NAMES kmlconvenience
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
find_library
(
LIBKML_DOM_LIBRARY
NAMES kmldom
)
NAMES kmldom
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
find_library
(
LIBKML_ENGINE_LIBRARY
NAMES kmlengine
)
NAMES kmlengine
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
find_library
(
LIBKML_REGIONATOR_LIBRARY
NAMES kmlregionator
)
NAMES kmlregionator
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
find_library
(
LIBKML_XSD_LIBRARY
NAMES kmlxsd
)
NAMES kmlxsd
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
find_library
(
LIBKML_MINIZIP_LIBRARY
NAMES minizip
)
NAMES minizip
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
)
mark_as_advanced
(
LIBKML_INCLUDE_DIR
LIBKML_BASE_LIBRARY
...
...
CMake/FindMuParser.cmake
View file @
2a4300dd
...
...
@@ -12,10 +12,14 @@ if( MUPARSER_INCLUDE_DIR )
endif
()
find_path
(
MUPARSER_INCLUDE_DIR muParser.h
PATHS
${
CMAKE_PREFIX_PATH
}
/include
PATH_SUFFIXES muParser
)
find_library
(
MUPARSER_LIBRARIES
NAMES muparser
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
PATH_SUFFIXES muparser
)
# handle the QUIETLY and REQUIRED arguments and set MUPARSER_FOUND to TRUE if
...
...
CMake/FindMuParserX.cmake
View file @
2a4300dd
...
...
@@ -12,10 +12,14 @@ if( MUPARSERX_INCLUDE_DIR )
endif
()
find_path
(
MUPARSERX_INCLUDE_DIR mpParser.h
PATHS
${
CMAKE_PREFIX_PATH
}
/include
PATH_SUFFIXES mpParser
)
find_library
(
MUPARSERX_LIBRARIES
NAMES muparserx
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
PATH_SUFFIXES muparserx
)
# handle the QUIETLY and REQUIRED arguments and set MUPARSERX_FOUND to TRUE if
...
...
CMake/FindOssim.cmake
View file @
2a4300dd
...
...
@@ -13,7 +13,11 @@ endif()
find_path
(
OSSIM_INCLUDE_DIR
NAMES ossim/init/ossimInit.h
PATHS $ENV{OSSIM_INCLUDE_DIR} /usr/local
)
PATHS
$ENV{OSSIM_INCLUDE_DIR}
${
CMAKE_PREFIX_PATH
}
/include
/usr/local/include
/usr/include
)
file
(
READ
"
${
OSSIM_INCLUDE_DIR
}
/ossim/ossimVersion.h"
_ossim_version_h_CONTENTS
)
string
(
REGEX REPLACE
".*# *define OSSIM_VERSION *
\"
([0-9.]+)
\"
.*"
"
\\
1"
OSSIM_VERSION
"
${
_ossim_version_h_CONTENTS
}
"
)
...
...
@@ -27,7 +31,13 @@ find_path( OSSIM_INCLUDE_DIR
find_library
(
OSSIM_LIBRARY
NAMES ossim
PATHS /usr/local/lib/ossim
)
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
${
CMAKE_PREFIX_PATH
}
/lib64
/usr/local/lib/ossim
/usr/local/lib64/
/usr/lib/
/usr/lib64/
)
# handle the QUIETLY and REQUIRED arguments and set OSSIM_FOUND to TRUE if
# all listed variables are TRUE
...
...
CMake/FindTinyXML.cmake
View file @
2a4300dd
...
...
@@ -12,10 +12,14 @@ if( TINYXML_INCLUDE_DIR )
endif
()
find_path
(
TINYXML_INCLUDE_DIR tinyxml.h
PATHS
${
CMAKE_PREFIX_PATH
}
/include
PATH_SUFFIXES tinyxml
)
find_library
(
TINYXML_LIBRARY
NAMES tinyxml
PATHS
${
CMAKE_PREFIX_PATH
}
/lib
PATH_SUFFIXES tinyxml
)
# handle the QUIETLY and REQUIRED arguments and set TINYXML_FOUND to TRUE if
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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