summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/FindPylon.cmake2
-rw-r--r--plugins/pylon/CMakeLists.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/cmake/FindPylon.cmake b/cmake/FindPylon.cmake
index a77e613..d3f8879 100644
--- a/cmake/FindPylon.cmake
+++ b/cmake/FindPylon.cmake
@@ -16,6 +16,7 @@ if (NOT "$ENV{PYLON_ROOT}" STREQUAL "")
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})
@@ -33,3 +34,4 @@ if (NOT "$ENV{PYLON_ROOT}" STREQUAL "")
LIBPYLONCAM_LIBRARIES
LIBPYLONCAM_LIBDIR)
endif()
+message("-- Pylon libraries found: ${PYLON_FOUND}")
diff --git a/plugins/pylon/CMakeLists.txt b/plugins/pylon/CMakeLists.txt
index 2e9dde9..f45ef76 100644
--- a/plugins/pylon/CMakeLists.txt
+++ b/plugins/pylon/CMakeLists.txt
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 2.6)
project(ucapylon C)
+find_package(Pylon)
if (PYLON_FOUND)
set(UCA_CAMERA_NAME "pylon")