Merge pull request #15 from cordova-ubuntu/ldflags
Make sure that all plugin dependencies linking flags are taken into account when compiling
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7679e42..bb70591 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,7 +118,13 @@
qt5_use_modules(coreplugins Widgets Location Sensors Feedback SystemInfo Contacts Multimedia Quick MultimediaWidgets)
target_link_libraries(cordova-ubuntu cordovaubuntuplugin)
-target_link_libraries(coreplugins cordovaubuntuplugin ${PLUGIN_DEPS_LIBRARIES})
+target_link_libraries(
+ coreplugins
+ cordovaubuntuplugin
+ ${PLUGIN_DEPS_LIBRARIES}
+ ${PLUGIN_DEPS_LDFLAGS}
+ ${PLUGIN_DEPS_LDFLAGS_OTHER}
+ )
install (TARGETS cordova-ubuntu DESTINATION ${CMAKE_INSTALL_PREFIX})
install (TARGETS coreplugins DESTINATION ${CMAKE_INSTALL_PREFIX}/www)