diff options
author | Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr> | 2017-06-06 14:22:24 +0200 |
---|---|---|
committer | Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr> | 2017-06-07 15:01:28 +0200 |
commit | 6358e611e09092ad121f4a85e548c0d9411ab09f (patch) | |
tree | 1e9ac163ce10ab44402dcce1566b7920afbe1bf1 /MetisForwarder/app/cmake/Modules/FindMetis.cmake | |
parent | dca773280df13ce3ecc6d306dffd603715cf25a5 (diff) |
update applications to use new version libicnet
Change-Id: I4b2381a13cf64488baf83056fc1fa11b359d1147
Signed-off-by: Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'MetisForwarder/app/cmake/Modules/FindMetis.cmake')
-rw-r--r-- | MetisForwarder/app/cmake/Modules/FindMetis.cmake | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/MetisForwarder/app/cmake/Modules/FindMetis.cmake b/MetisForwarder/app/cmake/Modules/FindMetis.cmake new file mode 100644 index 00000000..a3b4bff1 --- /dev/null +++ b/MetisForwarder/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) |