diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-07-31 14:21:53 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-07-31 14:21:53 +0200 |
commit | b8928cbea8e44c0eb10b6dcc97172f338e76cc79 (patch) | |
tree | 74afaf7b663527c952bd33576f39fe7c887e64f0 /CMakeLists.txt | |
parent | 84b10f0787095565e095d00501ecde1323ba72ed (diff) | |
download | uca-ufo-b8928cbea8e44c0eb10b6dcc97172f338e76cc79.tar.gz uca-ufo-b8928cbea8e44c0eb10b6dcc97172f338e76cc79.tar.bz2 uca-ufo-b8928cbea8e44c0eb10b6dcc97172f338e76cc79.tar.xz uca-ufo-b8928cbea8e44c0eb10b6dcc97172f338e76cc79.zip |
Make sensor width configurable
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cc840a3..20539a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,3 @@ -# --- Common ------------------------------------------------------------------ - cmake_minimum_required(VERSION 2.6) project(ucapco C) @@ -17,12 +15,20 @@ pkg_check_modules(PCITOOL pcitool>=0.2.0 REQUIRED) pkg_check_variable(libuca plugindir) -# --- Plugin specific --------------------------------------------------------- +if (NOT DEFINED CMOSIS_SENSOR_WIDTH) + set(CMOSIS_SENSOR_WIDTH "2048") +endif () + +set(CMOSIS_SENSOR_WIDTH ${CMOSIS_SENSOR_WIDTH} CACHE STRING "Width of the sensor") + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/config.h) include_directories( ${UCA_INCLUDE_DIRS} ${PCITOOL_INCLUDE_DIRS} - ${GIO2_INCLUDE_DIRS}) + ${GIO2_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR}) add_library(ucaufo SHARED uca-ufo-camera.c) |