2 ############################################################################################################################################
4 pkg_check_modules(websockets REQUIRED libwebsockets>=1.6.0)
5 pkg_check_modules(json REQUIRED json-c)
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})
9 set(cangenplugin_headers cangenplugin.h websockets.h)
10 set(cangenplugin_sources cangenplugin.cpp websockets.cpp)
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})
16 install(TARGETS cangenplugin LIBRARY DESTINATION ${PLUGIN_INSTALL_PATH})
18 ############################################################################################################################################