From 94a0978cf757b36db77642b698e6bc8660545c45 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 12 Feb 2014 12:31:47 +0100 Subject: Add configured install path to plugin search path --- CMakeLists.txt | 1 - src/config.h.in | 1 + src/uca-plugin-manager.c | 6 ++---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d1966c..e690527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,6 @@ include(ConfigurePaths) configure_paths(UCA) set(UCA_PLUGINDIR "${UCA_LIBDIR}/uca") -set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/package.sh.in ${CMAKE_CURRENT_BINARY_DIR}/package.sh) diff --git a/src/config.h.in b/src/config.h.in index 28f4ffb..a98cb00 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -5,3 +5,4 @@ #cmakedefine HAVE_PYLON_CAMERA #cmakedefine HAVE_DEXELA_CL #cmakedefine HAVE_MOCK_CAMERA +#cmakedefine UCA_PLUGINDIR "${UCA_PLUGINDIR}" diff --git a/src/uca-plugin-manager.c b/src/uca-plugin-manager.c index 7cb65b4..9db932a 100644 --- a/src/uca-plugin-manager.c +++ b/src/uca-plugin-manager.c @@ -35,6 +35,7 @@ #include #include #include "uca-plugin-manager.h" +#include "config.h" G_DEFINE_TYPE (UcaPluginManager, uca_plugin_manager, G_TYPE_OBJECT) @@ -397,8 +398,5 @@ uca_plugin_manager_init (UcaPluginManager *manager) if (uca_camera_path != NULL) uca_plugin_manager_add_path (manager, uca_camera_path); - uca_plugin_manager_add_path (manager, "/usr/lib/uca"); - uca_plugin_manager_add_path (manager, "/usr/lib64/uca"); - uca_plugin_manager_add_path (manager, "/usr/local/lib/uca"); - uca_plugin_manager_add_path (manager, "/usr/local/lib64/uca"); + uca_plugin_manager_add_path (manager, UCA_PLUGINDIR); } -- cgit v1.2.3