diff options
author | Maria <matveeva.maria@gmail.com> | 2014-04-01 12:24:27 +0200 |
---|---|---|
committer | Maria <matveeva.maria@gmail.com> | 2014-04-01 12:24:27 +0200 |
commit | 73dc98c51aafb5cd0491ccf46219fb60a9338ff1 (patch) | |
tree | cd476265464bec2831aa34bbf9b6c519dd6f2727 /plugins/xkit | |
parent | 8f7f8ea65bbd8e041399533372a2491497dde5e8 (diff) | |
download | uca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.tar.gz uca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.tar.bz2 uca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.tar.xz uca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.zip |
Build xkit plugin
Diffstat (limited to 'plugins/xkit')
-rw-r--r-- | plugins/xkit/CMakeLists.txt | 13 | ||||
-rw-r--r-- | plugins/xkit/uca-xkit-camera.cc | 4 |
2 files changed, 8 insertions, 9 deletions
diff --git a/plugins/xkit/CMakeLists.txt b/plugins/xkit/CMakeLists.txt index b16025b..6441c46 100644 --- a/plugins/xkit/CMakeLists.txt +++ b/plugins/xkit/CMakeLists.txt @@ -6,17 +6,16 @@ set(PLUGIN_VERSION "0.1.0") set(PLUGIN_REVISION "1") set(PLUGIN_REQUIRES "libuca >= 1.2.0") -find_path (XKIT_INCLUDE_DIR - NAMES dll_api.h mpxhw.h) +find_package(PkgConfig) +pkg_check_modules(XKIT xkit>=0.1.0) -find_library (XKIT_LIBRARIES - NAMES xKIT) - -if (XKIT_INCLUDE_DIR AND XKIT_LIBRARIES) +if (XKIT_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../package-plugin.sh.in ${CMAKE_CURRENT_BINARY_DIR}/../../package-plugin-${UCA_CAMERA_NAME}.sh) - include_directories(${XKIT_INCLUDE_DIR} + message("includedir: ${XKIT_LIBRARIES}") + + include_directories(${XKIT_INCLUDEDIR} ${UCA_CONFIGDIR}) # We have to compile with g++ because the included header files have C++ diff --git a/plugins/xkit/uca-xkit-camera.cc b/plugins/xkit/uca-xkit-camera.cc index 9b163c3..17d52d4 100644 --- a/plugins/xkit/uca-xkit-camera.cc +++ b/plugins/xkit/uca-xkit-camera.cc @@ -15,14 +15,14 @@ with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA */ -#include <dll_api.h> +#include <stdlib.h> +#include <xkit/dll_api.h> #undef FALSE #undef TRUE #include <gio/gio.h> #include <gmodule.h> -#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> |