diff options
author | Angelo Mantellini <angelo.mantellini@irt-systemx.fr> | 2018-03-21 14:16:02 +0100 |
---|---|---|
committer | Angelo Mantellini <angelo.mantellini@irt-systemx.fr> | 2018-03-21 20:46:00 +0100 |
commit | 5d308865d0783d0cd70f7453c77980835ac5648e (patch) | |
tree | aea91e7109a81669e5b19443296cf1dec6876532 /MetisForwarderAndroid/app/cmake/Modules/FindMetis.cmake | |
parent | e90a1ec7c82519127b63931a96535ad4bc31342d (diff) |
update android-sdk. Now it is possible to compile with clangandroid-sdk/master
Change-Id: I156aa48dd90467a2a7540eec11839c0111b13bd2
Signed-off-by: Angelo Mantellini <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'MetisForwarderAndroid/app/cmake/Modules/FindMetis.cmake')
-rw-r--r-- | MetisForwarderAndroid/app/cmake/Modules/FindMetis.cmake | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/MetisForwarderAndroid/app/cmake/Modules/FindMetis.cmake b/MetisForwarderAndroid/app/cmake/Modules/FindMetis.cmake new file mode 100644 index 00000000..a3b4bff1 --- /dev/null +++ b/MetisForwarderAndroid/app/cmake/Modules/FindMetis.cmake @@ -0,0 +1,41 @@ +######################################## +# +# Find the LibMetis libraries and includes +# This module sets: +# LIBMETIS_FOUND: True if Libmetis was found +# LIBMETIS_LIBRARY: The Libmetis library +# LIBMETIS_LIBRARIES: The Libmetis library and dependencies +# LIBMETIS_INCLUDE_DIR: The Libmetis include dir +# + +set(METIS_SEARCH_PATH_LIST + +${LIBMETISHOME} +$ENV{LIBMETISHOME} +$ENV{CCNX_HOME} +$ENV{FOUNDATION_HOME} +/usr/local/ +/usr/local/ccnx +/usr/local/ccn +/usr/local +/opt +/usr +) + + + +find_path(METIS_INCLUDE_DIR ccnx/forwarder/metis/metis_About.h +HINTS ${METIS_SEARCH_PATH_LIST} +PATH_SUFFIXES include +DOC "Find the libmetis includes") + +find_library(LIBMETIS_LIBRARY NAMES metis +HINTS ${LIBMETIS_SEARCH_PATH_LIST} +PATH_SUFFIXES lib +DOC "Find the libmetis libraries") + +set(LIBMETIS_LIBRARIES ${LIBMETIS_LIBRARY}) +set(LIBMETIS_INCLUDE_DIRS ${LIBMETIS_INCLUDE_DIR}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Libmetis DEFAULT_MSG LIBMETIS_LIBRARY LIBMETIS_INCLUDE_DIR) |