aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/afm-main-plugin/CMakeLists.txt
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-21 18:16:24 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-21 18:16:24 +0100
commit8f55018795aca8fa18f7431fd9171672303602cc (patch)
tree742a3132be1776591a71aabd447908c821b2fdb3 /plugins/afm-main-plugin/CMakeLists.txt
parent7c2a0b5d080742c1d85a48b261b6949d0ccd1f11 (diff)
Add plugin for the framework afm-main
Change-Id: Ib0bfba52aac8a60afc9a80a564202689e28b18ff
Diffstat (limited to 'plugins/afm-main-plugin/CMakeLists.txt')
-rw-r--r--plugins/afm-main-plugin/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/afm-main-plugin/CMakeLists.txt b/plugins/afm-main-plugin/CMakeLists.txt
new file mode 100644
index 00000000..673bc951
--- /dev/null
+++ b/plugins/afm-main-plugin/CMakeLists.txt
@@ -0,0 +1,14 @@
+
+
+pkg_check_modules(EXTRAS REQUIRED dbus-1)
+add_compile_options(${EXTRAS_CFLAGS})
+include_directories(${EXTRAS_INCLUDE_DIRS})
+link_libraries(${EXTRAS_LIBRARIES})
+
+ADD_LIBRARY(afm-main-api MODULE afm-main-plugin.c utils-jbus.c)
+SET_TARGET_PROPERTIES(afm-main-api PROPERTIES PREFIX "")
+TARGET_LINK_LIBRARIES(afm-main-api ${link_libraries})
+INCLUDE_DIRECTORIES(${include_dirs})
+INSTALL(TARGETS afm-main-api
+ LIBRARY DESTINATION ${plugin_install_dir})
+