diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-28 14:26:32 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-28 14:26:32 +0100 |
commit | f588f10b6fc6e452d42a66abc56028fe21cd56c2 (patch) | |
tree | 075e37f2e76936b42fc420071035ea5f6788d869 /src/CMakeLists.txt | |
parent | 31a9401a4c18fea613d8a508583dd657c41c384c (diff) | |
download | uca-f588f10b6fc6e452d42a66abc56028fe21cd56c2.tar.gz uca-f588f10b6fc6e452d42a66abc56028fe21cd56c2.tar.bz2 uca-f588f10b6fc6e452d42a66abc56028fe21cd56c2.tar.xz uca-f588f10b6fc6e452d42a66abc56028fe21cd56c2.zip |
Prepare for frame grabber abstraction
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d319ac3..e863137 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,10 +3,12 @@ cmake_minimum_required(VERSION 2.8) # --- Set sources ------------------------------------------------------------- set(uca_SRCS uca.c + uca-cam.c ) set(uca_HDRS uca.h + uca-cam.h ) set(uca_LIBS "") @@ -21,32 +23,45 @@ find_package(PCO) find_package(FgLib5) find_package(ClSerMe4) -# --- Add sources if camera access sources are available ---------------------- -if(PCO_FOUND AND CLSERME4_FOUND AND FGLIB5_FOUND) +# --- Add sources if camera/framegrabber access sources are available --------- +if(PCO_FOUND) set(HAVE_PCO_EDGE TRUE) set(uca_SRCS ${uca_SRCS} - cameras/uca_pco.c + cameras/pco.c ) set(uca_LIBS ${uca_LIBS} - ${CLSERME4_LIBRARY} - ${FGLIB5_LIBRARY} ${PCO_LIBRARIES} ) include_directories( ${CMAKE_CURRENT_SOURCE_DIR} - ${CLSERME4_INCLUDE_DIR} - ${FGLIB5_INCLUDE_DIR} ${PCO_INCLUDE_DIRS} ) endif() if(CLSERME4_FOUND AND FGLIB5_FOUND) - set(HAVE_ME4_FRAMEGRABBER TRUE) + set(HAVE_ME4 TRUE) + + set(uca_SRCS + ${uca_SRCS} + grabbers/me4.c + ) + + set(uca_LIBS + ${uca_LIBS} + ${CLSERME4_LIBRARY} + ${FGLIB5_LIBRARY} + ) + + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CLSERME4_INCLUDE_DIR} + ${FGLIB5_INCLUDE_DIR} + ) endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in |