summaryrefslogtreecommitdiffstats
path: root/plugins/xkit/CMakeLists.txt
diff options
context:
space:
mode:
authorMaria <matveeva.maria@gmail.com>2014-04-01 12:24:27 +0200
committerMaria <matveeva.maria@gmail.com>2014-04-01 12:24:27 +0200
commit73dc98c51aafb5cd0491ccf46219fb60a9338ff1 (patch)
treecd476265464bec2831aa34bbf9b6c519dd6f2727 /plugins/xkit/CMakeLists.txt
parent8f7f8ea65bbd8e041399533372a2491497dde5e8 (diff)
downloadlibuca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.tar.gz
libuca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.tar.bz2
libuca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.tar.xz
libuca-73dc98c51aafb5cd0491ccf46219fb60a9338ff1.zip
Build xkit plugin
Diffstat (limited to 'plugins/xkit/CMakeLists.txt')
-rw-r--r--plugins/xkit/CMakeLists.txt13
1 files changed, 6 insertions, 7 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++