File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
2727 set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" )
2828endif ()
2929
30- project (microxrcedds VERSION "2.4.2 " )
30+ project (microxrcedds VERSION "2.4.3 " )
3131
32- set (_client_tag v2.4.2 )
33- set (_client_version 2.4.2 )
34- set (_agent_tag v2.4.2 )
32+ set (_client_tag v2.4.3 )
33+ set (_client_version 2.4.3 )
34+ set (_agent_tag v2.4.3 )
3535set (_gen_tag v2.0.2)
3636
3737###############################################################################
Original file line number Diff line number Diff line change @@ -28,14 +28,26 @@ endif()
2828
2929add_executable (client-agent-test ${SRCS} )
3030
31- add_gtest (client-agent-test
31+ gtest_add_tests (
32+ TARGET
33+ client-agent-test
3234 SOURCES
3335 ${SRCS}
34- ENVIRONMENTS
35- $<$<PLATFORM_ID :Linux >:LD_LIBRARY_PATH =${CMAKE_PREFIX_PATH } /lib >
36- $<$<PLATFORM_ID :Windows >:PATH =${CMAKE_PREFIX_PATH } /bin >
36+ TEST_LIST
37+ allClientAgentTests
3738 )
3839
40+ if (WIN32 )
41+ set (PATH_ENV "$ENV{PATH} " )
42+ string (REPLACE ";" "\\ ;" PATH_ENV "${PATH_ENV} " )
43+
44+ set_tests_properties (${allClientAgentTests} PROPERTIES ENVIRONMENT
45+ "PATH=${CMAKE_PREFIX_PATH } /bin\\ ;${PATH_ENV} " )
46+ else ()
47+ set_tests_properties (${allClientAgentTests} PROPERTIES ENVIRONMENT
48+ "LD_LIBRARY_PATH=${CMAKE_PREFIX_PATH } /lib" )
49+ endif ()
50+
3951target_include_directories (client-agent-test
4052 PRIVATE
4153 ${GTEST_INCLUDE_DIR}
Original file line number Diff line number Diff line change @@ -21,14 +21,26 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/DEFAULT_FASTRTPS_PROFILES.xml.in
2121
2222add_executable (discovery-test DiscoveryIntegration.cpp )
2323
24- add_gtest (discovery-test
24+ gtest_add_tests (
25+ TARGET
26+ discovery-test
2527 SOURCES
2628 DiscoveryIntegration.cpp
27- ENVIRONMENTS
28- $<$<PLATFORM_ID :Linux >:LD_LIBRARY_PATH =${CMAKE_PREFIX_PATH } /lib >
29- $<$<PLATFORM_ID :Windows >:PATH =${CMAKE_PREFIX_PATH } /bin >
29+ TEST_LIST
30+ allDiscoveryTest
3031 )
3132
33+ if (WIN32 )
34+ set (PATH_ENV "$ENV{PATH} " )
35+ string (REPLACE ";" "\\ ;" PATH_ENV "${PATH_ENV} " )
36+
37+ set_tests_properties (${allDiscoveryTest} PROPERTIES ENVIRONMENT
38+ "PATH=${CMAKE_PREFIX_PATH } /bin\\ ;${PATH_ENV} " )
39+ else ()
40+ set_tests_properties (${allDiscoveryTest} PROPERTIES ENVIRONMENT
41+ "LD_LIBRARY_PATH=${CMAKE_PREFIX_PATH } /lib" )
42+ endif ()
43+
3244target_include_directories (discovery-test
3345 PRIVATE
3446 ${GTEST_INCLUDE_DIR}
Original file line number Diff line number Diff line change @@ -28,14 +28,26 @@ endif()
2828
2929add_executable (publisher-subscriber-interaction-test ${SRCS} )
3030
31- add_gtest (publisher-subscriber-interaction-test
31+ gtest_add_tests (
32+ TARGET
33+ publisher-subscriber-interaction-test
3234 SOURCES
3335 ${SRCS}
34- ENVIRONMENTS
35- $<$<PLATFORM_ID :Linux >:LD_LIBRARY_PATH =${CMAKE_PREFIX_PATH } /lib >
36- $<$<PLATFORM_ID :Windows >:PATH =${CMAKE_PREFIX_PATH } /bin >
36+ TEST_LIST
37+ allPublisherSubscriberInteractionTests
3738 )
3839
40+ if (WIN32 )
41+ set (PATH_ENV "$ENV{PATH} " )
42+ string (REPLACE ";" "\\ ;" PATH_ENV "${PATH_ENV} " )
43+
44+ set_tests_properties (${allPublisherSubscriberInteractionTests} PROPERTIES ENVIRONMENT
45+ "PATH=${CMAKE_PREFIX_PATH } /bin\\ ;${PATH_ENV} " )
46+ else ()
47+ set_tests_properties (${allPublisherSubscriberInteractionTests} PROPERTIES ENVIRONMENT
48+ "LD_LIBRARY_PATH=${CMAKE_PREFIX_PATH } /lib" )
49+ endif ()
50+
3951target_include_directories (publisher-subscriber-interaction-test
4052 PRIVATE
4153 ${GTEST_INCLUDE_DIR}
Original file line number Diff line number Diff line change @@ -25,14 +25,27 @@ endif()
2525set (SRCS ShapesDemo.cpp)
2626
2727add_executable (shapes_demo_test ${SRCS} )
28- add_gtest (shapes_demo_test
28+
29+ gtest_add_tests (
30+ TARGET
31+ shapes_demo_test
2932 SOURCES
3033 ${SRCS}
31- ENVIRONMENTS
32- $<$<PLATFORM_ID :Linux >:LD_LIBRARY_PATH =${CMAKE_PREFIX_PATH } /lib >
33- $<$<PLATFORM_ID :Windows >:PATH =${CMAKE_PREFIX_PATH } /bin >
34+ TEST_LIST
35+ allShapesDemoTests
3436 )
3537
38+ if (WIN32 )
39+ set (PATH_ENV "$ENV{PATH} " )
40+ string (REPLACE ";" "\\ ;" PATH_ENV "${PATH_ENV} " )
41+
42+ set_tests_properties (${allShapesDemoTests} PROPERTIES ENVIRONMENT
43+ "PATH=${CMAKE_PREFIX_PATH } /bin\\ ;${PATH_ENV} " )
44+ else ()
45+ set_tests_properties (${allShapesDemoTests} PROPERTIES ENVIRONMENT
46+ "LD_LIBRARY_PATH=${CMAKE_PREFIX_PATH } /lib" )
47+ endif ()
48+
3649target_include_directories (shapes_demo_test
3750 PRIVATE
3851 ${PROJECT_BINARY_DIR } /include
You can’t perform that action at this time.
0 commit comments