From 648aa8c2dc81f58feaf94d9a4573d5ac65c0f311 Mon Sep 17 00:00:00 2001 From: Jerome Lelong Date: Wed, 18 Jan 2017 08:08:51 +0000 Subject: [PATCH] Remove FindPnl.cmake, use PnlConfig.cmake instead git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/pnl/trunk@1120 94367915-3dfb-0310-9a54-a1fefb3e5df9 --- FindPnl.cmake | 65 --------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 FindPnl.cmake diff --git a/FindPnl.cmake b/FindPnl.cmake deleted file mode 100644 index 2583549b..00000000 --- a/FindPnl.cmake +++ /dev/null @@ -1,65 +0,0 @@ -# - Find the Pnl Library -# -# Usage: -# find_package(Pnl [REQUIRED] [QUIET]) -# -# It sets the following variables: -# PNL_FOUND ... true if Pnl is found on the sytem -# PNL_LIBRARIES ... full path to the Pnl library -# PNL_INCLUDE_DIRS ... Pnl include directory -# -# The following variables will be checked by the function -# PNL_ROOT ... if set, headers and libraries are exclusively -# searched under this path -# PNL_LIBRARY ... pnl library path to use -# PNL_INCLUDE_DIR ... pnl include directory - -if (PNL_ROOT) - find_library( - PNL_LIBRARY - NAMES "pnl" "libpnl" - PATHS ${PNL_ROOT} - PATH_SUFFIXES "lib" "lib64" - NO_DEFAULT_PATH - ) - - find_path( - PNL_INCLUDE_DIR - NAMES "pnl/pnl_random.h" - PATHS ${PNL_ROOT} - PATH_SUFFIXES "include" - NO_DEFAULT_PATH - ) -else (PNL_ROOT) - find_library( - PNL_LIBRARY - NAMES "pnl" "libpnl" - PATH_SUFFIXES "lib" "lib64" - NO_DEFAULT_PATH - ) - - find_path( - PNL_INCLUDE_DIR - NAMES "pnl/pnl_random.h" - PATH_SUFFIXES "include" - NO_DEFAULT_PATH - ) -endif (PNL_ROOT) - -# Handle the QUIETLY and REQUIRED arguments and set PNL_FOUND to TRUE if -# all listed variables are TRUE -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Pnl - REQUIRED_VARS - PNL_LIBRARY PNL_INCLUDE_DIR - FAIL_MESSAGE - "Pnl not found. Specify either (PNL_LIBRARY, PNL_INCLUDE_DIR) or PNL_ROOT" -) - -if (PNL_FOUND) - set(PNL_INCLUDE_DIRS ${PNL_INCLUDE_DIR}) - set(PNL_LIBRARIES ${PNL_LIBRARY}) - message(STATUS "PNL Include: ${PNL_INCLUDE_DIRS}") - message(STATUS "PNL Libraries: ${PNL_LIBRARIES}") -endif (PNL_FOUND) -mark_as_advanced(PNL_INCLUDE_DIRS PNL_LIBRARIES)