-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
26 lines (20 loc) · 1.06 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.16)
project(ice_demo)
# ########################################################################################
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pthread -fPIC -fpermissive")
# ########################################################################################
find_package(iceoryx_posh CONFIG REQUIRED)
find_package(iceoryx_hoofs CONFIG REQUIRED)
get_target_property(ICEORYX_CXX_STANDARD iceoryx_posh::iceoryx_posh CXX_STANDARD)
include(IceoryxPlatform)
# ########################################################################################
include_directories(/usr/include/)
include_directories(${CMAKE_BINARY_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${PROJECT_SOURCE_DIR})
# ########################################################################################
add_executable(cb_sub cb_sub_demo.cpp)
target_link_libraries(cb_sub iceoryx_posh::iceoryx_posh)
add_executable(cb_pub cb_pub_demo.cpp)
target_link_libraries(cb_pub iceoryx_posh::iceoryx_posh)