summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-08-01 14:06:50 +0200
committerVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-08-01 14:06:50 +0200
commit0b5720d0414f7e9f196664677899e999179a49f6 (patch)
treefb070d27abbbe0dccc23a85b34ce1b6239c4222b /test
parent7c5a0bdefd27180da32aaaf9b1331c69c66e1693 (diff)
downloadlibuca-0b5720d0414f7e9f196664677899e999179a49f6.tar.gz
libuca-0b5720d0414f7e9f196664677899e999179a49f6.tar.bz2
libuca-0b5720d0414f7e9f196664677899e999179a49f6.tar.xz
libuca-0b5720d0414f7e9f196664677899e999179a49f6.zip
extracted pylon_camera C-wrapper into own project; enhanced cmake build for pylon cameras
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 873b85f..36a5fd3 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -33,6 +33,20 @@ include_directories(
message("${CMAKE_CURRENT_SOURCE_DIR}")
+if (HAVE_PYLON_CAMERA)
+ set(GENICAM_ROOT $ENV{PYLON_ROOT}/genicam)
+ # check for 32/64 bit
+ if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(PYLON_LIB_DIRS $ENV{PYLON_ROOT}/lib64 $ENV{PYLON_ROOT}/bin ${GENICAM_ROOT}/bin/Linux64_x64
+ ${GENICAM_ROOT}/bin/Linux64_x64/GenApi/Generic)
+ else()
+ set(PYLON_LIB_DIRS $ENV{PYLON_ROOT}/lib64 $ENV{PYLON_ROOT}/bin ${GENICAM_ROOT}/bin/Linux32_i86
+ ${GENICAM_ROOT}/bin/Linux32_i86/GenApi/Generic)
+ endif()
+ message("PYLON LIB DIRS ${PYLON_LIB_DIRS}")
+ link_directories(${PYLON_LIB_DIRS})
+endif()
+
add_executable(grab grab.c)
add_executable(grab-async grab-async.c)