diff options
-rw-r--r-- | cmake/FindPF.cmake | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 16 |
2 files changed, 15 insertions, 3 deletions
diff --git a/cmake/FindPF.cmake b/cmake/FindPF.cmake index 1e5feae..090225d 100644 --- a/cmake/FindPF.cmake +++ b/cmake/FindPF.cmake @@ -9,7 +9,7 @@ find_package(PackageHandleStandardArgs) find_path(PF_INCLUDE_DIRS libpf/pfcam.h) -find_library(PF_LIBRARIES libcomdll libmv2_d1280_64) +find_library(PF_LIBRARIES NAMES comdll mv2_d1280_640) find_package_handle_standard_args(PF DEFAULT_MSG PF_LIBRARIES PF_INCLUDE_DIRS) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 835d1a5..33e7b5e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,6 +24,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # --- Find camera interfaces find_package(PCO) +find_package(PF) # --- Find frame grabber interfaces find_package(FgLib5) @@ -32,12 +33,23 @@ find_package(ClSerMe4) # --- Add sources if camera/framegrabber access sources are available --------- # FIXME: create some kind of libphoton and search for it -set(HAVE_PHOTON_FOCUS TRUE) -if(HAVE_PHOTON_FOCUS) +if (PF_FOUND) + set(HAVE_PHOTON_FOCUS TRUE) + set(uca_SRCS ${uca_SRCS} cameras/pf.c ) + + set(uca_LIBS + ${uca_LIBS} + ${PF_LIBRARIES} + ) + + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${PF_INCLUDE_DIRS} + ) endif() if(PCO_FOUND) |