fixed parallalel building and make install
[profile/ivi/automotive-message-broker.git] / plugins / wheel / CMakeLists.txt
index 77bd497..e0febed 100644 (file)
@@ -1,9 +1,16 @@
 
 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
 
+pkg_check_modules(giounix REQUIRED gio-unix-2.0)
+set(link_libraries ${link_libraries} ${giounix_LIBRARIES})
+#set(include_dirs ${include_dirs} ${giounix_INCLUDE_DIRS})
+include_directories(${giounix_INCLUDE_DIRS})
+
 set(wheelsourceplugin_headers wheelplugin.h)
 set(wheelsourceplugin_sources wheelplugin.cpp)
 
 add_library(wheelsourceplugin MODULE ${wheelsourceplugin_sources})
 set_target_properties(wheelsourceplugin PROPERTIES PREFIX "")
-target_link_libraries(wheelsourceplugin -lamb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
+target_link_libraries(wheelsourceplugin amb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
+
+install(TARGETS wheelsourceplugin LIBRARY DESTINATION lib/automotive-message-broker)