From 8679c0a542085c52a8d7458f5d4ecad13ed7ca99 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 24 Feb 2011 10:11:06 +0100 Subject: Check for framegrabber software --- src/CMakeLists.txt | 7 +++++++ src/config.h.in | 1 + 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2167d7c..d319ac3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -14,7 +14,10 @@ set(uca_LIBS "") # --- Find packages and libraries --------------------------------------------- set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) +# --- Find camera interfaces find_package(PCO) + +# --- Find frame grabber interfaces find_package(FgLib5) find_package(ClSerMe4) @@ -42,6 +45,10 @@ if(PCO_FOUND AND CLSERME4_FOUND AND FGLIB5_FOUND) ) endif() +if(CLSERME4_FOUND AND FGLIB5_FOUND) + set(HAVE_ME4_FRAMEGRABBER TRUE) +endif() + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) diff --git a/src/config.h.in b/src/config.h.in index 2a4abbb..c556dc3 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -1,4 +1,5 @@ +#cmakedefine HAVE_ME4_FRAMEGRABBER #cmakedefine HAVE_PCO_EDGE #cmakedefine HAVE_PHOTON_FOCUS #cmakedefine HAVE_IPE_CAMERA -- cgit v1.2.3