From b3e72c7944a738fe9201c406332cbcd878df65e3 Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Thu, 15 Apr 2021 10:48:30 +0000 Subject: Initial commit for AGL cluster api library This source code is AGL instrument cluster common API library. Currently, this source code is missing author information, license and other. Will be add by author. Author: Nozomu Abe (nozo_abe@nippon-seiki.co.jp) Committed by Naoto Yamaguchi. Signed-off-by: Naoto Yamaguchi --- test/client_test/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 test/client_test/CMakeLists.txt (limited to 'test/client_test/CMakeLists.txt') diff --git a/test/client_test/CMakeLists.txt b/test/client_test/CMakeLists.txt new file mode 100644 index 0000000..940326b --- /dev/null +++ b/test/client_test/CMakeLists.txt @@ -0,0 +1,41 @@ +cmake_minimum_required(VERSION 2.8) + +pkg_check_modules(IPC REQUIRED ipc) + +# use the variable _INCLUDE_DIRS to get include paths +include_directories( + ${IPC_INCLUDE_DIRS} + ../../include + ) + +# Define project Targets +set(CLIENT_TEST_BINARY_NAME client_test) +add_executable(${CLIENT_TEST_BINARY_NAME} + client_main.c + client_test_common.c + client_test_init_term.c + client_test_telltale.c + client_test_shiftposition.c + client_test_speed.c + client_test_tacho.c + client_test_tripcomputer.c + client_test_register_notify.c + ) + +# use the variable _LIBRARIES to get library paths +target_link_libraries(${CLIENT_TEST_BINARY_NAME} + ${IPC_LIBRARIES} + ${TARGET_NAME} + pthread + cunit + ) + +# Define project Targets +set(DUMMY_SERVER_BINARY_NAME dummy_server) +add_executable(${DUMMY_SERVER_BINARY_NAME} dummy_server.c) + +target_link_libraries(${DUMMY_SERVER_BINARY_NAME} + ${IPC_LIBRARIES} + pthread + ) + -- cgit 1.2.3-korg