Fix build issues while bitbake without meta-qt5
[AGL/meta-agl.git] / meta-ivi-common / recipes-automotive / automotive-message-broker / automotive-message-broker / 0001-Fix-build-issues-while-bitbake-without-meta-qt5-laye.patch
1 From aff92c907e8fc96b1edf96aa061843bce71244ca Mon Sep 17 00:00:00 2001
2 From: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
3 Date: Mon, 16 Nov 2015 20:22:06 +0900
4 Subject: [PATCH] Fix build issues while bitbake without meta-qt5 layer
5
6 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
7 ---
8  tests/CMakeLists.txt | 2 ++
9  1 file changed, 2 insertions(+)
10
11 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
12 index cea4807..900bdc5 100644
13 --- a/tests/CMakeLists.txt
14 +++ b/tests/CMakeLists.txt
15 @@ -11,6 +11,7 @@ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/gendb.sh ${CMAKE_CURRENT_SOURCE_DIR}
16  
17  install (PROGRAMS ${amb_tests} DESTINATION bin)
18  
19 +if(qtmainloop OR qt_bindings)
20  find_package(Qt5Network)
21  find_package(Qt5Core)
22  
23 @@ -28,3 +29,4 @@ if(Qt5Network_FOUND)
24    add_executable(testProtocolClient testProtocolClient.cpp testProtocolCommon.h)
25    target_link_libraries(testProtocolClient ${link_libraries} amb -L${CMAKE_CURRENT_BINARY_DIR}/lib amb-plugins-common amb-json-protocol -L${CMAKE_CURRENT_BINARY_DIR}/plugins/common ${QT_LIBRARIES})
26  endif()
27 +endif(qtmainloop OR qt_bindings)
28 -- 
29 1.9.1
30