summaryrefslogtreecommitdiffstats
path: root/cmake/FindPF.cmake
blob: 7c87a50abe7f14c625a9dc60eeff757edcf5ac61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Try to find libpco.so
#
# Defines
#
# 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_LIBRARY_COMDLL NAMES comdll)
find_library(PF_LIBRARY_COMDLL_FG NAMES comdll_fg)
find_library(PF_LIBRARY_MV2 NAMES mv2_d1280_640)
find_library(PF_LIBRARY_PFCAM NAMES pfcam)

set(PF_LIBRARIES 
    ${PF_LIBRARY_MV2} 
    ${PF_LIBRARY_PFCAM}
    ${PF_LIBRARY_COMDLL}
    ${PF_LIBRARY_COMDLL_FG}
    )

find_package_handle_standard_args(PF DEFAULT_MSG PF_LIBRARIES PF_INCLUDE_DIRS)

mark_as_advanced(
    PF_INCLUDE_DIRS
    PF_LIBRARIES
)