1# Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) 2# This Source Code Form is subject to the terms of the Mozilla Public 3# License, v. 2.0. If a copy of the MPL was not distributed with this 4# file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 6cmake_minimum_required (VERSION 2.8...3.23.2) 7 8set(EXAMPLE_CONFIG_FILES 9 "../config/vsomeip.json" 10 "../config/vsomeip-local.json" 11 "../config/vsomeip-tcp-client.json" 12 "../config/vsomeip-tcp-service.json" 13 "../config/vsomeip-udp-client.json" 14 "../config/vsomeip-udp-service.json" 15) 16 17# Examples 18add_executable(request-sample request-sample.cpp ${EXAMPLE_CONFIG_FILES}) 19target_link_libraries(request-sample ${VSOMEIP_NAME} ${Boost_LIBRARIES} ${DL_LIBRARY}) 20 21add_executable(response-sample response-sample.cpp ${EXAMPLE_CONFIG_FILES}) 22target_link_libraries(response-sample ${VSOMEIP_NAME} ${Boost_LIBRARIES} ${DL_LIBRARY}) 23 24add_executable(subscribe-sample subscribe-sample.cpp ${EXAMPLE_CONFIG_FILES}) 25target_link_libraries(subscribe-sample ${VSOMEIP_NAME} ${Boost_LIBRARIES} ${DL_LIBRARY}) 26 27add_executable(notify-sample notify-sample.cpp ${EXAMPLE_CONFIG_FILES}) 28target_link_libraries(notify-sample ${VSOMEIP_NAME} ${Boost_LIBRARIES} ${DL_LIBRARY}) 29 30add_dependencies(examples request-sample response-sample subscribe-sample notify-sample) 31 32install ( 33 TARGETS request-sample response-sample subscribe-sample notify-sample 34 RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT bin 35) 36 37################################################################################################### 38