3 include(CheckIncludeFiles)
4 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
6 pkg_check_modules(websockets REQUIRED libwebsockets)
8 set(websocketsourceplugin_headers websocketsource.h)
9 set(websocketsourceplugin_sources websocketsource.cpp)
10 add_library(websocketsourceplugin MODULE ${websocketsourceplugin_sources})
11 set_target_properties(websocketsourceplugin PROPERTIES PREFIX "")
12 target_link_libraries(websocketsourceplugin amb ${websockets_LIBRARIES} -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
14 install(TARGETS websocketsourceplugin LIBRARY DESTINATION lib${LIB_SUFFIX}/automotive-message-broker)
16 endif(websocket_plugin)