summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-14 12:08:10 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-14 12:08:10 +0100
commitaaa9488c5681a2d3dd12cc1a5275164ae6d5ab63 (patch)
treecfea503e374b0bc80e0dc7dcd8e3a80ad2713aa8 /src/CMakeLists.txt
parent0e40d8791f5fa2081a76fa9a03bef6e189dbec0e (diff)
downloaduca-aaa9488c5681a2d3dd12cc1a5275164ae6d5ab63.tar.gz
uca-aaa9488c5681a2d3dd12cc1a5275164ae6d5ab63.tar.bz2
uca-aaa9488c5681a2d3dd12cc1a5275164ae6d5ab63.tar.xz
uca-aaa9488c5681a2d3dd12cc1a5275164ae6d5ab63.zip
Make dummy camera optional
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)