diff options
author | Kevron Rees <kevron.m.rees@intel.com> | 2014-04-30 17:13:06 -0700 |
---|---|---|
committer | Kevron Rees <kevron.m.rees@intel.com> | 2014-04-30 17:13:06 -0700 |
commit | fe2ed4c2ecdd5c2bbf9529248c68003f8b0b5d45 (patch) | |
tree | 904b17aa3b62f735135470c4220b797eaf049ebb | |
parent | f642de0bb45df8e97c73064ea8d23204a5b19b25 (diff) | |
download | automotive-message-broker-0.11.tar.gz |
fixed building0.11
-rw-r--r-- | plugins/gpsnmea/CMakeLists.txt | 10 | ||||
-rw-r--r-- | plugins/gpsnmea/gpsnmea.cpp | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/plugins/gpsnmea/CMakeLists.txt b/plugins/gpsnmea/CMakeLists.txt index fddfe883..377190e3 100644 --- a/plugins/gpsnmea/CMakeLists.txt +++ b/plugins/gpsnmea/CMakeLists.txt @@ -5,11 +5,11 @@ set(gpsnmea_sources gpsnmea.cpp ) include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs} ${gio_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/plugins/common) -add_executable(gpsnmea.so ${gpsnmea_sources}) -#add_library(gpsnmea MODULE ${gpsnmea_sources}) -set_target_properties(gpsnmea.so PROPERTIES PREFIX "") -target_link_libraries(gpsnmea.so amb -L${CMAKE_CURRENT_BINARY_DIR}/lib amb-plugins-common -L${CMAKE_CURRENT_BINARY_DIR}/plugins/common ${link_libraries} ${gio_LIBRARIES}) +#add_executable(gpsnmea.so ${gpsnmea_sources}) +add_library(gpsnmea MODULE ${gpsnmea_sources}) +set_target_properties(gpsnmea PROPERTIES PREFIX "") +target_link_libraries(gpsnmea amb -L${CMAKE_CURRENT_BINARY_DIR}/lib amb-plugins-common -L${CMAKE_CURRENT_BINARY_DIR}/plugins/common ${link_libraries} ${gio_LIBRARIES}) -install(TARGETS gpsnmea.so RUNTIME DESTINATION lib/automotive-message-broker) +install(TARGETS gpsnmea LIBRARY DESTINATION lib/automotive-message-broker) endif(gpsnmea_plugin) diff --git a/plugins/gpsnmea/gpsnmea.cpp b/plugins/gpsnmea/gpsnmea.cpp index 75ff3403..b54bc2db 100644 --- a/plugins/gpsnmea/gpsnmea.cpp +++ b/plugins/gpsnmea/gpsnmea.cpp @@ -448,6 +448,8 @@ GpsNmeaSource::GpsNmeaSource(AbstractRoutingEngine *re, map<string, string> conf g_io_channel_set_close_on_unref(chan, true); g_io_channel_unref(chan); //Pass ownership of the GIOChannel to the watch. } + + re->setSupported(supported(), this); } GpsNmeaSource::~GpsNmeaSource() |