diff options
author | 2021-08-04 09:35:49 +0000 | |
---|---|---|
committer | 2021-08-04 09:39:44 +0000 | |
commit | b27fb69aa966866920e86b10f7d10326a0042e33 (patch) | |
tree | f90fec01a1f9dcbc0aedd7ecad199148e8dd335c /CMakeLists.txt | |
parent | 8203dc658421473aed7e2236aabb1992a9011dfe (diff) | |
parent | 61bf7d8b56d97e1600980f44ffd97df07febfb80 (diff) |
Import cluster-ipc source code from experimental repositorylamprey_12.0.1lamprey/12.0.1koi_11.0.4koi/11.0.412.0.111.0.4
Maruyama-san et al. are developing instrument cluster ipc library in
in experimental repository.
This patch is upstreaming that source code.
Previous commit message is not match AGL commit message requirement.
But, that commit message need to record who is contributed.
Merge remote-tracking branch 'github/main'
Signed-off-by: Naoto Yamaguchi <i33399_yamaguchi@aisin-aw.co.jp>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6db6abb --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,35 @@ +# Copyright (c) 2021, Nippon Seiki Co., Ltd. +# SPDX-License-Identifier: Apache-2.0 + +project(cluster_ipc C) + +cmake_minimum_required(VERSION 2.8) + +# set gcc flags +set(CMAKE_C_FLAGS "-Wall -O2") + +# Build option for DEBUG +option(DEBUG_BUILD "This is debug build." OFF) +if(DEBUG_BUILD) + add_definitions(-DDEBUG) + set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/installdir/usr CACHE PATH "..." FORCE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") +endif() + +include(GNUInstallDirs) +set(IPC_LIBRARY_VERSION "1.0.0") + +# Name of library API +set(TARGET_NAME cluster_ipc) + +# Name of IC-service server API +#set(SERVER_API_NAME cluster_server_api) + +# Subdirectories +add_subdirectory(src) +add_subdirectory(ipc_unit_test) + +configure_file(cluster_ipc.pc.in cluster_ipc.pc @ONLY) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cluster_ipc.pc + DESTINATION + ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |