fixed parallalel building and make install
[profile/ivi/automotive-message-broker.git] / plugins / websocketsink / CMakeLists.txt
1 include(CheckIncludeFiles)
2 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
3
4 check_include_files(libwebsockets.h HAVE_WEBSOCKETS)
5
6 set(websocketsinkplugin_headers websocketsink.h websocketmanager.h)
7 set(websocketsinkplugin_sources websocketsinkmanager.cpp websocketsink.cpp)
8 add_library(websocketsinkplugin MODULE ${websocketsinkplugin_sources})
9 set_target_properties(websocketsinkplugin PROPERTIES PREFIX "")
10 target_link_libraries(websocketsinkplugin amb websockets  -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries})
11
12 install(TARGETS websocketsinkplugin LIBRARY DESTINATION lib/automotive-message-broker)