Change libwebsockets APIs
[profile/ivi/automotive-message-broker.git] / plugins / cangenplugin / CMakeLists.txt
1 if(cangen_plugin)
2 ############################################################################################################################################
3
4 pkg_check_modules(websockets REQUIRED libwebsockets>=1.6.0)
5 pkg_check_modules(json REQUIRED json-c)
6
7 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs} ${gio_INCLUDE_DIRS} ${gio-unix_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/plugins/common ${Boost_INCLUDE_DIRS} ${json_INCLUDE_DIRS})
8
9 set(cangenplugin_headers cangenplugin.h websockets.h)
10 set(cangenplugin_sources cangenplugin.cpp websockets.cpp)
11
12 add_library(cangenplugin MODULE ${cangenplugin_sources} ${cangenplugin_headers})
13 set_target_properties(cangenplugin PROPERTIES PREFIX "")
14 target_link_libraries(cangenplugin amb amb-plugins-common -L${CMAKE_CURRENT_BINARY_DIR}/plugins/common ${link_libraries} ${websockets_LIBRARIES} -lrt ${json_LIBRARIES})
15
16 install(TARGETS cangenplugin LIBRARY DESTINATION ${PLUGIN_INSTALL_PATH})
17
18 ############################################################################################################################################
19
20 endif(cangen_plugin)