summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-04-24 08:53:21 +0200
committerVolker Kaiser <volker.kaiser@softwareschneiderei.de>2012-07-26 15:36:43 +0200
commitb5c90a21f289bb67c4806a8563d96fc674bba583 (patch)
tree604d4f0ad4ac6e6c8ebec639995ce02f1a15f4e6 /cmake
parent642a047ce60c9e071b9815d11ea9a81761598c9c (diff)
downloaduca-b5c90a21f289bb67c4806a8563d96fc674bba583.tar.gz
uca-b5c90a21f289bb67c4806a8563d96fc674bba583.tar.bz2
uca-b5c90a21f289bb67c4806a8563d96fc674bba583.tar.xz
uca-b5c90a21f289bb67c4806a8563d96fc674bba583.zip
pylon (basler) camera added
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindPylon.cmake47
-rw-r--r--cmake/FindYAT.cmake6
2 files changed, 53 insertions, 0 deletions
diff --git a/cmake/FindPylon.cmake b/cmake/FindPylon.cmake
new file mode 100644
index 0000000..f446df2
--- /dev/null
+++ b/cmake/FindPylon.cmake
@@ -0,0 +1,47 @@
+
+# Try to find libpco.so
+#
+# Defines
+#
+# PCO_FOUND - system has libpco
+# PCO_INCLUDE_DIRS - libpco include directory
+# PCO_LIBRARIES - pco library
+
+find_package(YAT)
+
+find_package(PackageHandleStandardArgs)
+
+find_path(PYLON_DIRS include/pylon/PylonBase.h HINTS /opt/pylon ENV PYLON_ROOT)
+set(GENICAM_ROOT ${PYLON_DIRS}/genicam)
+set(PYLON_INCLUDE_DIRS ${PYLON_DIRS}/include ${GENICAM_ROOT}/library/CPP/include)
+
+# check for 32/64 bit
+if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(PYLON_LIB_DIRS ${PYLON_DIRS}/lib64 ${PYLON_DIRS}/bin ${GENICAM_ROOT}/bin/Linux64_x64
+ ${GENICAM_ROOT}/bin/Linux64_x64/GenApi/Generic)
+else()
+ set(PYLON_LIB_DIRS ${PYLON_DIRS}/lib64 ${PYLON_DIRS}/bin ${GENICAM_ROOT}/bin/Linux32_i86
+ ${GENICAM_ROOT}/bin/Linux32_i86/GenApi/Generic)
+endif()
+
+find_library(PYLONBASE_LIB pylonbase PATHS ${PYLON_LIB_DIRS})
+find_library(PYLONUTILITY_LIB pylonutility PATHS ${PYLON_LIB_DIRS})
+find_library(PYLONGIGESUPP_LIB pylongigesupp PATHS ${PYLON_LIB_DIRS})
+find_library(GENAPI_LIB GenApi_gcc40_v2_1 PATHS ${PYLON_LIB_DIRS})
+find_library(GCBASE_LIB GCBase_gcc40_v2_1 PATHS ${PYLON_LIB_DIRS})
+set (PYLON_LIBS ${PYLONBASE_LIB}
+ ${PYLONUTILITY_LIB}
+ ${PYLONGIGESUPP_LIB}
+ ${GENAPI_LIB}
+ ${GCBASE_LIB}
+ ${YAT_LIB})
+
+find_package_handle_standard_args(PYLON DEFAULT_MSG PYLON_LIBS PYLON_INCLUDE_DIRS)
+
+find_package(PkgConfig)
+pkg_check_modules(BASLER_PYLON baslerpylon>=0.1.0 REQUIRED)
+MESSAGE(LIBRARY_DIRS ${BASLER_PYLON_LIBRARY_DIRS})
+find_library(BASLERPYLON_LIB baslerpylon PATHS ${BASLER_PYLON_LIBRARY_DIRS})
+
+#set (PYLON_LIBS ${PYLON_LIBS} ${BASLERPYLON_LIB})
+
diff --git a/cmake/FindYAT.cmake b/cmake/FindYAT.cmake
new file mode 100644
index 0000000..92da3c8
--- /dev/null
+++ b/cmake/FindYAT.cmake
@@ -0,0 +1,6 @@
+
+find_package(PkgConfig)
+pkg_check_modules(YAT yat>=1.7.7 REQUIRED)
+
+find_library(YAT_LIB yat ${YAT_LIBRARY_DIRS})
+