rusty's patch to fix up lib suffix
[profile/ivi/automotive-message-broker.git] / plugins / websocketsourceplugin / CMakeLists.txt
1 if(websocket_plugin)
2
3 include(CheckIncludeFiles)
4 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
5
6 pkg_check_modules(websockets REQUIRED libwebsockets)
7
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})
13
14 install(TARGETS websocketsourceplugin LIBRARY DESTINATION lib${LIB_SUFFIX}/automotive-message-broker)
15
16 endif(websocket_plugin)