diff options
-rw-r--r-- | cmake/FindIPE.cmake | 19 | ||||
-rw-r--r-- | src/CMakeLists.txt | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/cmake/FindIPE.cmake b/cmake/FindIPE.cmake new file mode 100644 index 0000000..3667235 --- /dev/null +++ b/cmake/FindIPE.cmake @@ -0,0 +1,19 @@ +# Try to find user-space driver for the IPE camera +# +# Defines +# +# IPE_FOUND - system has libpcidriver +# IPE_INCLUDE_DIRS - libpci include directory +# IPE_LIBRARIES - pci library + +find_package(PackageHandleStandardArgs) + +find_path(IPE_INCLUDE_DIRS pcilib.h) +find_library(IPE_LIBRARIES pcidriver) + +find_package_handle_standard_args(IPE DEFAULT_MSG IPE_LIBRARIES IPE_INCLUDE_DIRS) + +mark_as_advanced( + IPE_INCLUDE_DIRS + IPE_LIBRARIES +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6542d6e..dd0475e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,6 +25,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # --- Find camera interfaces find_package(PCO) find_package(PF) +find_package(IPE) # --- Find frame grabber interfaces find_package(FgLib5) @@ -71,6 +72,24 @@ if(PCO_FOUND) ) endif() +if(IPE_FOUND) + set(HAVE_IPE_CAMERA TRUE) + + set(uca_SRCS + ${uca_SRCS} + cameras/ipe.c + ) + + set(uca_LIBS + ${uca_LIBS} + ${IPE_LIBRARIES} + ) + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${IPE_INCLUDE_DIRS} + ) +endif() + if(CLSERME4_FOUND AND FGLIB5_FOUND) set(HAVE_ME4 TRUE) |