summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-01-18 16:01:41 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-01-19 09:37:43 +0100
commita52b301fcc0f4f91fadfd92254629502107deda9 (patch)
tree0ea5cddfe0397288e8c7efd449bdbf993884489b /CMakeLists.txt
parent8d922a1a445ca6f738d8a81308e87959cfa03e35 (diff)
downloaduca-ufo-a52b301fcc0f4f91fadfd92254629502107deda9.tar.gz
uca-ufo-a52b301fcc0f4f91fadfd92254629502107deda9.tar.bz2
uca-ufo-a52b301fcc0f4f91fadfd92254629502107deda9.tar.xz
uca-ufo-a52b301fcc0f4f91fadfd92254629502107deda9.zip
Implement sensor height as compile-time constant
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20539a6..6ee5d82 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,12 @@ if (NOT DEFINED CMOSIS_SENSOR_WIDTH)
set(CMOSIS_SENSOR_WIDTH "2048")
endif ()
+if (NOT DEFINED CMOSIS_SENSOR_HEIGHT)
+ set(CMOSIS_SENSOR_HEIGHT "1088")
+endif ()
+
set(CMOSIS_SENSOR_WIDTH ${CMOSIS_SENSOR_WIDTH} CACHE STRING "Width of the sensor")
+set(CMOSIS_SENSOR_HEIGHT ${CMOSIS_SENSOR_HEIGHT} CACHE STRING "Height of the sensor")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)