disabled irc in bluemonkey
[profile/ivi/automotive-message-broker.git] / plugins / bluemonkey / CMakeLists.txt
1 if(bluemonkey_plugin)
2
3 find_package(Qt5Core REQUIRED)
4 find_package(Qt5Network REQUIRED)
5 find_package(Qt5Script REQUIRED)
6 if(Qt5Core_FOUND)
7   message(STATUS "using Qt5")
8
9   set(QT_INCLUDE_DIRS ${Qt5Core_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS} ${Qt5Script_INCLUDE_DIRS})
10   set(QT_LIBRARIES ${Qt5Core_LIBRARIES} ${Qt5Network_LIBRARIES} ${Qt5Script_LIBRARIES})
11   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
12   add_definitions(${Qt5Core_DEFINITIONS})
13
14 endif(Qt5Core_FOUND)
15
16 set(CMAKE_AUTOMOC ON)
17 #set(communi_INCLUDE_DIRS /usr/include/qt5/Communi)
18 #set(communi_LIBRARIES -lCommuni)
19 #add_definitions(-DCOMMUNI_SHARED)
20
21 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs} ${communi_INCLUDE_DIRS} ${QT_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/plugins/common)
22
23 set(bluemonkeyplugin_headers bluemonkey.h authenticate.h agent.h)
24 set(bluemonkeyplugin_sources bluemonkey.cpp authenticate.cpp agent.cpp)
25
26 add_library(bluemonkeyplugin MODULE ${bluemonkeyplugin_sources})
27 set_target_properties(bluemonkeyplugin PROPERTIES PREFIX "")
28 target_link_libraries(bluemonkeyplugin amb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries} ${QT_LIBRARIES} ${communi_LIBRARIES} amb-plugins-common -L${CMAKE_CURRENT_BINARY_DIR}/plugins/common)
29
30 set(config_files ${CMAKE_CURRENT_SOURCE_DIR}/config.js)
31
32 install(TARGETS bluemonkeyplugin LIBRARY DESTINATION ${PLUGIN_INSTALL_PATH})
33 install (FILES ${config_files} DESTINATION /etc/ambd/bluemonkey)
34 endif(bluemonkey_plugin)