install all the files
authorKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 5 Sep 2012 17:45:02 +0000 (10:45 -0700)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 5 Sep 2012 17:46:31 +0000 (10:46 -0700)
ambd/CMakeLists.txt
ambd/main.cpp
lib/CMakeLists.txt
plugins/dbus/CMakeLists.txt
plugins/obd2plugin/CMakeLists.txt
plugins/websocketsink/CMakeLists.txt
plugins/websocketsourceplugin/CMakeLists.txt
plugins/wheel/CMakeLists.txt

index 7cd1652..bfe0e4d 100644 (file)
@@ -2,3 +2,6 @@ add_executable(ambd core.cpp main.cpp pluginloader.cpp)
 
 include_directories(${include_dirs} )
 target_link_libraries(ambd ${link_libraries} amb)
+
+install (TARGETS ambd RUNTIME DESTINATION bin)
+install (FILES ${CMAKE_CURRENT_BINARY_DIR}/config DESTINATION /etc/ambd)
index f626432..0a728c0 100644 (file)
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
 
        bool isdeamonize=false;
        int optc;
-       string config;
+       string config="/etc/ambd/config";
        
        while ((optc = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1)
        {
index 69e12c2..25ac747 100644 (file)
@@ -6,8 +6,11 @@ add_library(amb SHARED ${amb_sources})
 target_link_libraries(amb ${libtool_LIBRARY} ${glib_LIBRARIES} ${gio_LIBRARIES})
 
 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/automotive-message-broker.pc.in ${CMAKE_CURRENT_BINARY_DIR}/automotive-message-broker.pc @ONLY)
+
 install (FILES ${CMAKE_CURRENT_BINARY_DIR}/automotive-message-broker.pc DESTINATION ${LIB_INSTALL_DIR}/${LIB_SUFFIX}/pkgconfig)
+
 install (FILES ${amb_headers_install} DESTINATION ${INCLUDE_INSTALL_DIR}/amb COMPONENT Devel)
+
 install (TARGETS amb LIBRARY DESTINATION ${LIB_INSTALL_DIR} RUNTIME DESTINATION bin ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
 
 
index 07464f3..6bca949 100644 (file)
@@ -10,4 +10,4 @@ add_library(dbussinkplugin MODULE ${dbussinkplugin_sources})
 set_target_properties(dbussinkplugin PROPERTIES PREFIX "")
 target_link_libraries(dbussinkplugin -lamb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries} ${gio_LIBRARIES})
 
-
+install (TARGETS dbussinkplugin LIBRARY DESTINATION lib/automotive-message-broker)
index 0882cfd..472e3f0 100644 (file)
@@ -6,3 +6,5 @@ set(obd2sourceplugin_sources obd2source.cpp obdlib.cpp)
 add_library(obd2sourceplugin MODULE ${obd2sourceplugin_sources})
 set_target_properties(obd2sourceplugin PROPERTIES PREFIX "")
 target_link_libraries(obd2sourceplugin -lamb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
+
+install(TARGETS obd2sourceplugin LIBRARY DESTINATION lib/automotive-message-broker)
index eb1284b..c64cd1f 100644 (file)
@@ -8,3 +8,5 @@ set(websocketsinkplugin_sources websocketsinkmanager.cpp websocketsink.cpp)
 add_library(websocketsinkplugin MODULE ${websocketsinkplugin_sources})
 set_target_properties(websocketsinkplugin PROPERTIES PREFIX "")
 target_link_libraries(websocketsinkplugin -lamb -lwebsockets  -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
+
+install(TARGETS websocketsinkplugin LIBRARY DESTINATION lib/automotive-message-broker)
index 6abc485..b060c3f 100644 (file)
@@ -8,3 +8,5 @@ set(websocketsourceplugin_sources websocketsource.cpp)
 add_library(websocketsourceplugin MODULE ${websocketsourceplugin_sources})
 set_target_properties(websocketsourceplugin PROPERTIES PREFIX "")
 target_link_libraries(websocketsourceplugin -lamb -lwebsockets  -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
+
+install(TARGETS websocketsourceplugin LIBRARY DESTINATION lib/automotive-message-broker)
index b140059..10658ef 100644 (file)
@@ -12,3 +12,5 @@ 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})
+
+install(TARGETS wheelsourceplugin LIBRARY DESTINATION lib/automotive-message-broker)