summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/CMakeLists.txt7
-rw-r--r--src/config.h.in1
2 files changed, 8 insertions, 0 deletions
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