summaryrefslogtreecommitdiffstats
path: root/cmake/FindPF.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindPF.cmake')
-rw-r--r--cmake/FindPF.cmake12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmake/FindPF.cmake b/cmake/FindPF.cmake
index 090225d..0e3a120 100644
--- a/cmake/FindPF.cmake
+++ b/cmake/FindPF.cmake
@@ -2,17 +2,21 @@
#
# Defines
#
-# PCO_FOUND - system has libpco
-# PCO_INCLUDE_DIRS - libpco include directory
-# PCO_LIBRARIES - pco library
+# PF_FOUND - system has libpco
+# PF_INCLUDE_DIRS - libpco include directory
+# PF_LIBRARIES - pco library
find_package(PackageHandleStandardArgs)
find_path(PF_INCLUDE_DIRS libpf/pfcam.h)
-find_library(PF_LIBRARIES NAMES comdll mv2_d1280_640)
+find_library(PF_LIBRARY_COMDLL NAMES comdll)
+find_library(PF_LIBRARY_MV2 NAMES mv2_d1280_640)
+find_library(PF_LIBRARY_PFCAM NAMES pfcam)
find_package_handle_standard_args(PF DEFAULT_MSG PF_LIBRARIES PF_INCLUDE_DIRS)
+set(PF_LIBRARIES ${PF_LIBRARY_MV2} ${PF_LIBRARY_PFCAM} ${PF_LIBRARY_COMDLL})
+
mark_as_advanced(
PF_INCLUDE_DIRS
PF_LIBRARIES