diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-21 15:06:42 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-02-21 15:06:42 +0100 |
commit | 28619821bc90ed4c15844b2e6b6a5a2971ef5f2e (patch) | |
tree | c313b5b77087c18027d152c4c69c49b8ea0254d9 /src/CMakeLists.txt | |
download | libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.gz libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.bz2 libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.xz libuca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.zip |
Initial commit
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..0d6ce94 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,49 @@ +cmake_minimum_required(VERSION 2.8) + +# --- Set sources ------------------------------------------------------------- +set(uca_SRCS + uca.c + ) + +set(uca_HDRS + uca.h + ) + +set(uca_LIBS "") + +# --- Find packages and libraries --------------------------------------------- +set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) + +find_package(PCO) +find_package(ClSerMe4) + +# --- Add sources if camera access sources are available ---------------------- +if(PCO_FOUND AND CLSERME4_FOUND) + set(HAVE_PCO_EDGE TRUE) + + set(uca_SRCS + ${uca_SRCS} + cameras/uca_pco.c + ) + + set(uca_LIBS + ${uca_LIBS} + ${CLSERME4_LIBRARY} + ${PCO_LIBRARIES} + ) + + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CLSERME4_INCLUDE_DIR} + ${PCO_INCLUDE_DIRS} + ) +endif() + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/config.h) + + +# --- Build target ------------------------------------------------------------ +add_library(uca SHARED ${uca_SRCS}) + +target_link_libraries(uca ${uca_LIBS}) |