1 find_package(Gstreamer-1.0 REQUIRED)
2 find_package(Glib-2.0 REQUIRED)
4 if (BUILD_TESTS_WITH_HMI)
5 find_package(LibXML2 REQUIRED)
6 endif(BUILD_TESTS_WITH_HMI)
8 # --- GoogleTest example
9 #add_subdirectory(./gtest-example)
11 # --- components tests
12 add_subdirectory(./components)
13 add_subdirectory(./thirdPartyLibs)
14 add_subdirectory(${CMAKE_SOURCE_DIR}/src/components/policy/test/policy ./policy)
15 add_subdirectory(./tools)
19 ../src/thirdPartyLibs/gmock-1.7.0/include
20 ../src/thirdPartyLibs/jsoncpp/include/
21 ../src/thirdPartyLibs/gmock-1.7.0/gtest/include
22 ../src/thirdPartyLibs/MessageBroker/include
24 ../src/components/application_manager/include
25 ../src/components/hmi_message_handler/include
26 ../src/components/request_watchdog/include
27 ../src/components/media_manager/include
28 ../src/components/config_profile/include
29 ../src/components/policy/src/policy/include
30 ../src/components/policy/src/policy/usage_statistics/include
31 ../src/components/protocol_handler/include
32 ../src/components/transport_manager/include
33 ../src/components/connection_handler/include
34 ../src/components/formatters/include
35 ../src/components/smart_objects/include
36 ../src/components/formatters/include
37 ../src/components/utils/include/
38 ../src/components/resumption/include/
39 ../test/components/mobile_message_handler/include/
40 ../test/components/request_watchdog/include/
41 ../test/components/media_manager/include
42 ../test/components/protocol_handler/include/
43 ../test/components/utils/include
44 ../test/components/json_handler/include
45 ../test/components/smart_objects
46 ../test/components/transport_manager
48 ../test/thirdPartyLibs/jsoncpp/include
49 ../test/components/application_manager
50 ../test/components/application_manager/rpc/include
51 ${CMAKE_BINARY_DIR}/src/components/
53 # /usr/lib/i386-linux-gnu/glib-2.0/include
54 # /usr/lib/x86_64-linux-gnu/glib-2.0/include/
55 # ${GSTREAMER_gst_INCLUDE_DIR}
56 # ${GLIB_glib_2_INCLUDE_DIR}
68 v4_protocol_v1_2_no_extra
75 #test_JSONHandler_v4_protocol_v2_0_revP
78 #test_FormattersCommandsTest
80 #test_RequestWatchdogTest
81 #test_ProtocolHandlerTest
93 # ${GSTREAMER_gstreamer_LIBRARY}
97 if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
98 list(APPEND LIBRARIES dl)
102 if (BUILD_USB_SUPPORT)
103 if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
104 list(APPEND LIBRARIES Libusb-1.0.16)
108 add_executable("test_suit" "./test_suit.cc")
110 if (BUILD_TESTS_WITH_HMI)
111 include_directories(${INCLUDE_DIR} ${LibXML2_INCLUDE_DIR})
112 target_link_libraries("test_suit"
115 ${LibXML2_LIBRARIES} -lxml2
118 else (BUILD_TESTS_WITH_HMI)
119 include_directories(${INCLUDE_DIR})
120 target_link_libraries("test_suit" ${LIBRARIES})
121 endif (BUILD_TESTS_WITH_HMI)
123 # vim: set ts=2 sw=2 et: