1 if(websocketold_plugin)
3 include(CheckIncludeFiles)
4 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
6 pkg_check_modules(websockets REQUIRED libwebsockets)
8 set(websocketsinkplugin_headers websocketsink.h websocketmanager.h)
9 set(websocketsinkplugin_sources websocketsinkmanager.cpp websocketsink.cpp)
10 add_library(websocketsinkplugin MODULE ${websocketsinkplugin_sources})
11 set_target_properties(websocketsinkplugin PROPERTIES PREFIX "")
12 target_link_libraries(websocketsinkplugin amb ${websockets_LIBRARIES} -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
14 install(TARGETS websocketsinkplugin LIBRARY DESTINATION ${PLUGIN_INSTALL_PATH})
16 endif(websocketold_plugin)