generated from JayTwoLab/cpp.gitignore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (26 loc) · 877 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (26 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.16)
project(shared_memory_boost_ipc LANGUAGES CXX)
if(NOT UNIX OR APPLE)
message(FATAL_ERROR "This project supports Linux only.")
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Boost REQUIRED COMPONENTS)
add_subdirectory(writer)
add_subdirectory(reader)
###################################
# Building commands (Case Rocky Linux)
###################################
# rm -rf build
#
# cmake -S . -B build -DBOOST_ROOT=/usr -DBOOST_INCLUDEDIR=/usr/include -DBOOST_LIBRARYDIR=/usr/lib64 -DBoost_NO_SYSTEM_PATHS=ON -DBoost_DEBUG=ON
#
# cmake --build build
#
####################################
# NOTICE:
####################################
# Current shared memory is not erased automatically.
# For reader/writer running sequence.
# If you remove shared memory, run writer with --remove option.
#