forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
36 lines (30 loc) · 937 Bytes
/
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
27
28
29
30
31
32
33
34
35
36
# Build iceperf example
cmake_minimum_required(VERSION 3.5)
project(iceperf)
find_package(iceoryx_posh CONFIG REQUIRED)
get_target_property(ICEORYX_CXX_STANDARD iceoryx_posh::iceoryx_posh CXX_STANDARD)
if ( NOT ICEORYX_CXX_STANDARD )
include(IceoryxPlatformDetection)
endif ( NOT ICEORYX_CXX_STANDARD )
add_executable(iceperf-laurel iceperf_laurel.cpp)
set_target_properties(iceperf-laurel PROPERTIES
CXX_STANDARD_REQUIRED ON
CXX_STANDARD ${ICEORYX_CXX_STANDARD}
POSITION_INDEPENDENT_CODE ON
)
target_link_libraries(iceperf-laurel
iceoryx_posh::iceoryx_posh
)
add_executable(iceperf-hardy iceperf_hardy.cpp)
set_target_properties(iceperf-hardy PROPERTIES
CXX_STANDARD_REQUIRED ON
CXX_STANDARD ${ICEORYX_CXX_STANDARD}
POSITION_INDEPENDENT_CODE ON
)
target_link_libraries(iceperf-hardy
iceoryx_posh::iceoryx_posh
)
install(
TARGETS iceperf-laurel iceperf-hardy
RUNTIME DESTINATION bin
)