diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-08-10 10:56:54 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-08-10 10:56:54 +0200 |
commit | 1ae9dcd4ae312d497f8aa2381efee1b49b727a90 (patch) | |
tree | 685693acdb44cc51424b7b25877cd6a2d0d82fe6 /cmake | |
parent | bf30a848ad7ac00218aab6589df7a19d868728cd (diff) | |
parent | 859a6a6802e1891628af988a83a3e24b5b75c007 (diff) | |
download | uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.tar.gz uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.tar.bz2 uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.tar.xz uca-1ae9dcd4ae312d497f8aa2381efee1b49b727a90.zip |
Merge branch 'ipe-basler'
Conflicts:
src/CMakeLists.txt
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindPylon.cmake | 40 | ||||
-rw-r--r-- | cmake/FindYAT.cmake | 5 |
2 files changed, 45 insertions, 0 deletions
diff --git a/cmake/FindPylon.cmake b/cmake/FindPylon.cmake new file mode 100644 index 0000000..01cee02 --- /dev/null +++ b/cmake/FindPylon.cmake @@ -0,0 +1,40 @@ + +# Try to find libpco.so +# +# Defines +# +# PYLON_FOUND - system has libpco +# PYLON_INCLUDE_DIR - libpco include directory +# PYLON_LIB - pco library + +# check for environment variable PYLON_ROOT +find_package(YAT) +find_package(PkgConfig) +find_package(PackageHandleStandardArgs) + +if (NOT "$ENV{PYLON_ROOT}" STREQUAL "") + message("PYLON_ROOT=$ENV{PYLON_ROOT}") + + find_library(YAT_LIB yat ${YAT_LIBRARY_DIRS}) + + pkg_check_modules(LIBPYLONCAM pyloncam>=0.1) + if (DEFINED LIBPYLONCAM_OTHER_PREFIX) + string(REPLACE ${LIBPYLONCAM_PREFIX} ${LIBPYLONCAM_OTHER_PREFIX} + LIBPYLONCAM_INCLUDEDIR ${LIBPYLONCAM_INCLUDEDIR}) + string(REPLACE ${LIBPYLONCAM_PREFIX} ${LIBPYLONCAM_OTHER_PREFIX} + LIBPYLONCAM_LIBRARIES ${LIBPYLONCAM_LIBRARIES}) + string(REPLACE ${LIBPYLONCAM_PREFIX} ${LIBPYLONCAM_OTHER_PREFIX} + LIBPYLONCAM_LIBDIR ${LIBPYLONCAM_LIBDIR}) + set(LIBPYLONCAM_LIBDIR ${LIBPYLONCAM_LIBDIR} PARENT_SCOPE) + endif() + + find_package_handle_standard_args(PYLON DEFAULT_MSG LIBPYLONCAM_INCLUDEDIR LIBPYLONCAM_LIBRARIES) + + mark_as_advanced( + LIBPYLONCAM_INCLUDEDIR + LIBPYLONCAM_LIBRARIES + LIBPYLONCAM_LIBDIR) + +else() + message("Environment variable PYLON_ROOT not found! => unable to build pylon camera support") +endif() diff --git a/cmake/FindYAT.cmake b/cmake/FindYAT.cmake new file mode 100644 index 0000000..0d3ec56 --- /dev/null +++ b/cmake/FindYAT.cmake @@ -0,0 +1,5 @@ + +find_package(PkgConfig) +pkg_check_modules(YAT yat>=1.7.7) + +find_library(YAT_LIB yat ${YAT_LIBRARY_DIRS}) |