diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-01-18 16:01:41 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-01-19 09:37:43 +0100 |
commit | a52b301fcc0f4f91fadfd92254629502107deda9 (patch) | |
tree | 0ea5cddfe0397288e8c7efd449bdbf993884489b /CMakeLists.txt | |
parent | 8d922a1a445ca6f738d8a81308e87959cfa03e35 (diff) | |
download | uca-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.txt | 5 |
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) |