@@ -11,11 +11,11 @@ set (VSOMEIP_COMPAT_NAME vsomeip)
11
11
12
12
set (VSOMEIP_MAJOR_VERSION 3)
13
13
set (VSOMEIP_MINOR_VERSION 1)
14
- set (VSOMEIP_PATCH_VERSION 7 )
14
+ set (VSOMEIP_PATCH_VERSION 14 )
15
15
set (VSOMEIP_HOTFIX_VERSION 1)
16
16
17
17
set (VSOMEIP_VERSION ${VSOMEIP_MAJOR_VERSION} .${VSOMEIP_MINOR_VERSION} .${VSOMEIP_PATCH_VERSION} )
18
- set (PACKAGE_VERSION ${VSOMEIP_VERSION} ) # Used in documentatin /doxygen.in
18
+ set (PACKAGE_VERSION ${VSOMEIP_VERSION} ) # Used in documentation /doxygen.in
19
19
set (CMAKE_VERBOSE_MAKEFILE off )
20
20
21
21
if (NOT GTEST_ROOT)
@@ -96,11 +96,15 @@ if (ENABLE_SIGNAL_HANDLING)
96
96
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVSOMEIP_ENABLE_SIGNAL_HANDLING" )
97
97
endif ()
98
98
99
- # Thread sanitizer
99
+ # Sanitizer
100
100
if (ENABLE_THREAD_SANITIZER)
101
101
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread" )
102
102
endif ()
103
103
104
+ if (ENABLE_LEAK_SANITIZER)
105
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=leak" )
106
+ endif ()
107
+
104
108
# Configuration overlays
105
109
if (ENABLE_CONFIGURATION_OVERLAYS)
106
110
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVSOMEIP_ENABLE_CONFIGURATION_OVERLAYS" )
@@ -128,7 +132,7 @@ endif ()
128
132
find_package (Threads REQUIRED)
129
133
130
134
# Boost
131
- find_package ( Boost 1.55 COMPONENTS system thread log REQUIRED )
135
+ find_package ( Boost 1.55 COMPONENTS system thread filesystem REQUIRED )
132
136
include_directories ( ${Boost_INCLUDE_DIR} )
133
137
134
138
if (Boost_FOUND)
@@ -152,7 +156,7 @@ else()
152
156
endif ()
153
157
154
158
message ( STATUS "Using boost version: ${VSOMEIP_BOOST_VERSION} " )
155
- if (${VSOMEIP_BOOST_VERSION} GREATER 107200 )
159
+ if (${VSOMEIP_BOOST_VERSION} GREATER 107300 )
156
160
message ( ERROR "boost version ${VSOMEIP_BOOST_VERSION} is not (yet) supported. Latest supported version is 1.72.0" )
157
161
elseif (${VSOMEIP_BOOST_VERSION} GREATER 106999)
158
162
set (VSOMEIP_BOOST_HELPER implementation/helper/1.70)
@@ -209,14 +213,14 @@ if (MSVC)
209
213
message ("using MSVC Compiler" )
210
214
# add_definitions(-DVSOMEIP_DLL_COMPILATION) now it is controlled per target
211
215
SET (BOOST_WINDOWS_VERSION "0x600" CACHE STRING "Set the same Version as the Version with which Boost was built, otherwise there will be errors. (normaly 0x600 is for Windows 7 and 0x501 is for Windows XP)" )
212
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_WIN32_WINNT=${BOOST_WINDOWS_VERSION} -DWIN32 -DBOOST_LOG_DYN_LINK - DBOOST_ASIO_DISABLE_IOCP /EHsc" )
213
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_WIN32_WINNT=${BOOST_WINDOWS_VERSION} -DWIN32 -DBOOST_LOG_DYN_LINK - DBOOST_ASIO_DISABLE_IOCP /EHsc" )
216
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_WIN32_WINNT=${BOOST_WINDOWS_VERSION} -DWIN32 -DBOOST_ASIO_DISABLE_IOCP /EHsc" )
217
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D_WIN32_WINNT=${BOOST_WINDOWS_VERSION} -DWIN32 -DBOOST_ASIO_DISABLE_IOCP /EHsc" )
214
218
set (USE_RT "" )
215
219
set (Boost_LIBRARIES "" )
216
220
link_directories (${Boost_LIBRARY_DIR_DEBUG} )
217
221
ADD_DEFINITIONS ( -DBOOST_ALL_DYN_LINK )
218
222
else ()
219
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${OS} ${OS_CXX_FLAGS} -DBOOST_LOG_DYN_LINK - g ${OPTIMIZE} -std=c++11 ${NO_DEPRECATED} ${EXPORTSYMBOLS} " )
223
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${OS} ${OS_CXX_FLAGS} -g ${OPTIMIZE} -std=c++11 ${NO_DEPRECATED} ${EXPORTSYMBOLS} " )
220
224
set (USE_RT "rt" )
221
225
endif ()
222
226
@@ -242,7 +246,7 @@ endif ()
242
246
################################################################################
243
247
file (GLOB ${VSOMEIP_NAME} _SRC
244
248
"implementation/endpoints/src/*.cpp"
245
- "implementation/logging /src/*.cpp"
249
+ "implementation/logger /src/*.cpp"
246
250
"implementation/tracing/src/*.cpp"
247
251
"implementation/message/src/*.cpp"
248
252
"implementation/plugin/src/*.cpp"
@@ -252,7 +256,7 @@ file(GLOB ${VSOMEIP_NAME}_SRC
252
256
"implementation/utility/src/*.cpp"
253
257
)
254
258
if (VSOMEIP_ENABLE_MULTIPLE_ROUTING_MANAGERS EQUAL 1)
255
- list (APPEND ${VSOMEIP_NAME} _SRC ${ ${VSOMEIP_NAME} -cfg_SRC} )
259
+ list (APPEND ${VSOMEIP_NAME} _SRC "implementation/configuration/src/configuration_impl.cpp" )
256
260
endif ()
257
261
list (SORT ${VSOMEIP_NAME} _SRC)
258
262
@@ -553,7 +557,7 @@ else()
553
557
-a version =${VSOMEIP_VERSION}
554
558
-b html
555
559
-o documentation/vsomeipUserGuide.html
556
- ${PROJECT_BINARY_DIR} /.. /documentation/vsomeipUserGuide)
560
+ ${PROJECT_SOURCE_DIR} /documentation/vsomeipUserGuide)
557
561
endif ()
558
562
559
563
##############################################################################
@@ -576,7 +580,9 @@ add_subdirectory( tools )
576
580
# build examples
577
581
add_custom_target ( examples )
578
582
add_subdirectory ( examples EXCLUDE_FROM_ALL )
579
-
583
+ add_custom_target ( hello_world )
584
+ add_subdirectory ( examples/hello_world EXCLUDE_FROM_ALL )
585
+
580
586
##############################################################################
581
587
# Test section
582
588
##############################################################################
0 commit comments