remove hard coded path into CMake files
[profile/ivi/ico-vic-amb-plugin.git] / src / CMakeLists.txt
1 include(CheckIncludeFiles)
2
3 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs} ${gio_INCLUDE_DIRS} ${gio-unix_INCLUDE_DIRS} ${ambd_INCLUDE_DIRS} ${dbus_INCLUDE_DIRS} )
4 set(CMAKE_CXX_FLAGS "-g -Wall -std=c++11 -O3")
5 set(vehicleplugin_headers common.h abstractconfig.h ambconfig.h convert.h standardmessage.h datamessage.h eventmessage.h messageformat.h controlwebsocket.h mwinterface.h viccommunicator.h ambinterface.h)
6 set(vehicleplugin_sources abstractconfig.cc ambconfig.cc convert.cc standardmessage.cc eventmessage.cc datamessage.cc mwinterface.cc controlwebsocket.cc viccommunicator.cc ambinterface.cc)
7 add_library(vehicleplugin MODULE ${vehicleplugin_sources})
8 set_target_properties(vehicleplugin PROPERTIES PREFIX "")
9 target_link_libraries(vehicleplugin amb websockets -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries} -lico-util)
10
11 install(TARGETS vehicleplugin LIBRARY DESTINATION ${LIB_INSTALL_DIR}/automotive-message-broker)
12
13 set(ico-vic-amb-plugin-conf_docs AMBformat.conf)
14 install (FILES ${ico-vic-amb-plugin-conf_docs} DESTINATION ${CONF_INSTALL_DIR})