summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7a69ed4..55cc2af 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -9,14 +9,12 @@ set(uca_SRCS
uca.c
uca-cam.c
uca-grabber.c
- cameras/dummy.c
)
set(uca_HDRS
uca.h
uca-cam.h
uca-grabber.h
- cameras/dummy.h
)
set(uca_LIBS "")
@@ -38,6 +36,10 @@ find_package(SWIG)
find_package(PythonLibs)
+# --- Build options -----------------------------------------------------------
+option(HAVE_DUMMY_CAMERA "Build a dummy camera model" OFF)
+
+
# --- Add sources if camera/framegrabber access sources are available ---------
if (PF_FOUND)
set(HAVE_PHOTON_FOCUS TRUE)
@@ -116,6 +118,13 @@ if(CLSERME4_FOUND AND FGLIB5_FOUND)
)
endif()
+if(HAVE_DUMMY_CAMERA)
+ set(uca_SRCS
+ ${uca_SRCS}
+ cameras/dummy.c
+ )
+endif()
+
# --- Configure step
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)