Addition of test plugin to test Map and List types, and Map and List fromVariant...
[profile/ivi/automotive-message-broker.git] / lib / CMakeLists.txt
1 set(amb_sources abstractpropertytype.cpp abstractroutingengine.cpp listplusplus.cpp abstractsink.cpp vehicleproperty.cpp abstractsource.cpp debugout.cpp timestamp.cpp uuidhelper.cpp mappropertytype.hpp)
2 set(amb_headers_install abstractpropertytype.h nullptr.h abstractroutingengine.h listplusplus.h abstractsink.h vehicleproperty.h debugout.h abstractsource.h timestamp.h uuidhelper.h mappropertytype.hpp)
3
4 add_library(amb SHARED ${amb_sources})
5
6 find_library(uuid_LIBRARY uuid DOC "Uuid libraries")
7 find_path(uuid_INCLUDE_DIR uuid/uuid.h DOC "Libtool headers")
8
9 if(uuid_LIBRARY)
10          message(STATUS "uuid found")
11 else(uuid_LIBRARY)
12          message(FATAL_ERROR "uuid missing.  please install uuid-dev")
13 endif(uuid_LIBRARY)
14
15 include_directories( ${include_dirs} ${uuid_INCLUDE_DIR})
16
17 target_link_libraries(amb ${libtool_LIBRARY} ${glib_LIBRARIES} ${gio_LIBRARIES} ${uuid_LIBRARY} ${json_LIBRARY})
18
19 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/automotive-message-broker.pc.in ${CMAKE_CURRENT_BINARY_DIR}/automotive-message-broker.pc @ONLY)
20
21 install (FILES ${CMAKE_CURRENT_BINARY_DIR}/automotive-message-broker.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
22
23 install (FILES ${amb_headers_install} DESTINATION ${INCLUDE_INSTALL_DIR}/amb COMPONENT Devel)
24
25 install (TARGETS amb LIBRARY DESTINATION ${LIB_INSTALL_DIR} RUNTIME DESTINATION bin ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
26
27