8a4df2cc3a
A basic sample to show the layout required to do any IPC work for both client and server. It does not have a multi-process architecture and instead relies on threading, but this already shows the speed that should be expected when using DataPath.
26 lines
359 B
CMake
26 lines
359 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(sample_single-process-ipc)
|
|
|
|
SET(PROJECT_SOURCES
|
|
"${PROJECT_SOURCE_DIR}/main.cpp"
|
|
)
|
|
|
|
SET(PROJECT_LIBRARIES
|
|
datapath
|
|
)
|
|
|
|
# Includes
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}
|
|
)
|
|
|
|
# Building
|
|
ADD_EXECUTABLE(${PROJECT_NAME}
|
|
${PROJECT_SOURCES}
|
|
)
|
|
|
|
# Linking
|
|
TARGET_LINK_LIBRARIES(${PROJECT_NAME}
|
|
${PROJECT_LIBRARIES}
|
|
)
|