Skip to content

Commit

Permalink
Refs #11831. Remove unnecessary condition in cmake
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González <ricardo@richiware.dev>
  • Loading branch information
richiware committed Jul 12, 2021
1 parent 05115bb commit ca48535
Show file tree
Hide file tree
Showing 37 changed files with 2,758 additions and 2,870 deletions.
4 changes: 1 addition & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ set(MEMORYCHECK_SUPPRESSIONS_FILE ${MEMORYCHECK_SUPPRESSIONS_FILE_TMP} CACHE FIL
###############################################################################
if(EPROSIMA_BUILD_TESTS AND IS_TOP_LEVEL AND NOT EPROSIMA_INSTALLER)
find_package(GTest CONFIG REQUIRED)
if (GTest_FOUND)
include(${PROJECT_SOURCE_DIR}/cmake/common/gtest.cmake)
endif()
include(${PROJECT_SOURCE_DIR}/cmake/common/gtest.cmake)

add_subdirectory(blackbox)
add_subdirectory(communication)
Expand Down
314 changes: 156 additions & 158 deletions test/blackbox/CMakeLists.txt

Large diffs are not rendered by default.

30 changes: 14 additions & 16 deletions test/realtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
add_subdirectory(mutex_testing_tool)

if(GTest_FOUND)
set(USER_THREAD_NONBLOCKED_TEST UserThreadNonBlockedTest.cpp)
set(USER_THREAD_NONBLOCKED_TEST UserThreadNonBlockedTest.cpp)

add_executable(user_thread_nonblocked_test ${USER_THREAD_NONBLOCKED_TEST})
target_compile_definitions(DDSSimpleCommunicationSubscriber PRIVATE
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_link_libraries(user_thread_nonblocked_test mutex_testing_tool fastrtps fastcdr GTest::gtest)
add_executable(user_thread_nonblocked_test ${USER_THREAD_NONBLOCKED_TEST})
target_compile_definitions(DDSSimpleCommunicationSubscriber PRIVATE
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_link_libraries(user_thread_nonblocked_test mutex_testing_tool fastrtps fastcdr GTest::gtest)

STRING(REPLACE " " "\\ " MUTEX_PRELOAD_LIBRARY_FILE "$<TARGET_FILE:mutex_testing_tool_preload>")
add_gtest(NAME UserThreadNonBlockedTest COMMAND user_thread_nonblocked_test SOURCES ${USER_THREAD_NONBLOCKED_TEST}
ENVIRONMENTS
"LD_LIBRARY_PATH=$<TARGET_FILE_DIR:mutex_testing_tool_preload>"
"LD_PRELOAD=$<TARGET_FILE_NAME:mutex_testing_tool_preload>"
LABELS "NoMemoryCheck"
)
endif()
STRING(REPLACE " " "\\ " MUTEX_PRELOAD_LIBRARY_FILE "$<TARGET_FILE:mutex_testing_tool_preload>")
add_gtest(NAME UserThreadNonBlockedTest COMMAND user_thread_nonblocked_test SOURCES ${USER_THREAD_NONBLOCKED_TEST}
ENVIRONMENTS
"LD_LIBRARY_PATH=$<TARGET_FILE_DIR:mutex_testing_tool_preload>"
"LD_PRELOAD=$<TARGET_FILE_NAME:mutex_testing_tool_preload>"
LABELS "NoMemoryCheck"
)
26 changes: 12 additions & 14 deletions test/realtime/mutex_testing_tool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if(GTest_FOUND)
add_library(mutex_testing_tool SHARED TMutex.cpp)
add_library(mutex_testing_tool SHARED TMutex.cpp)

add_library(mutex_testing_tool_preload SHARED Mutex.cpp)
target_link_libraries(mutex_testing_tool_preload PRIVATE mutex_testing_tool ${CMAKE_DL_LIBS})
add_library(mutex_testing_tool_preload SHARED Mutex.cpp)
target_link_libraries(mutex_testing_tool_preload PRIVATE mutex_testing_tool ${CMAKE_DL_LIBS})

add_executable(TMutexTests TMutexTests.cpp)
target_link_libraries(TMutexTests mutex_testing_tool GTest::gtest)
STRING(REPLACE " " "\\ " MUTEX_PRELOAD_LIBRARY_FILE "$<TARGET_FILE:mutex_testing_tool_preload>")
add_gtest(TMutexTests SOURCES TMutexTests.cpp
ENVIRONMENTS
"LD_LIBRARY_PATH=$<TARGET_FILE_DIR:mutex_testing_tool_preload>"
"LD_PRELOAD=$<TARGET_FILE_NAME:mutex_testing_tool_preload>"
LABELS "NoMemoryCheck"
)
endif(GTest_FOUND)
add_executable(TMutexTests TMutexTests.cpp)
target_link_libraries(TMutexTests mutex_testing_tool GTest::gtest)
STRING(REPLACE " " "\\ " MUTEX_PRELOAD_LIBRARY_FILE "$<TARGET_FILE:mutex_testing_tool_preload>")
add_gtest(TMutexTests SOURCES TMutexTests.cpp
ENVIRONMENTS
"LD_LIBRARY_PATH=$<TARGET_FILE_DIR:mutex_testing_tool_preload>"
"LD_PRELOAD=$<TARGET_FILE_NAME:mutex_testing_tool_preload>"
LABELS "NoMemoryCheck"
)
38 changes: 18 additions & 20 deletions test/unittest/dds/collections/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,24 @@
# limitations under the License.

if(NOT ((MSVC OR MSVC_IDE) AND EPROSIMA_INSTALLER))
if(GTest_FOUND)
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()

set(LOANABLE_SEQUENCE_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp
LoanableSequenceTests.cpp)
set(LOANABLE_SEQUENCE_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp
LoanableSequenceTests.cpp)

add_executable(LoanableSequenceTests ${LOANABLE_SEQUENCE_TESTS_SOURCE})
target_compile_definitions(LoanableSequenceTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(LoanableSequenceTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include)
target_link_libraries(LoanableSequenceTests GTest::gtest)
add_gtest(LoanableSequenceTests SOURCES ${LOANABLE_SEQUENCE_TESTS_SOURCE})
endif()
add_executable(LoanableSequenceTests ${LOANABLE_SEQUENCE_TESTS_SOURCE})
target_compile_definitions(LoanableSequenceTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(LoanableSequenceTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include)
target_link_libraries(LoanableSequenceTests GTest::gtest)
add_gtest(LoanableSequenceTests SOURCES ${LOANABLE_SEQUENCE_TESTS_SOURCE})
endif()
46 changes: 22 additions & 24 deletions test/unittest/dds/core/condition/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,28 @@
# limitations under the License.

if(NOT ((MSVC OR MSVC_IDE) AND EPROSIMA_INSTALLER))
if(GTest_FOUND)
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()

set(CONDITION_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/TypesBase.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusCondition.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/WaitSet.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp
ConditionTests.cpp)
set(CONDITION_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/TypesBase.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusCondition.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/WaitSet.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp
ConditionTests.cpp)

add_executable(ConditionTests ${CONDITION_TESTS_SOURCE})
target_compile_definitions(ConditionTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(ConditionTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include)
target_link_libraries(ConditionTests GTest::gtest fastcdr)
add_gtest(ConditionTests SOURCES ${CONDITION_TESTS_SOURCE})
endif()
add_executable(ConditionTests ${CONDITION_TESTS_SOURCE})
target_compile_definitions(ConditionTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(ConditionTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include)
target_link_libraries(ConditionTests GTest::gtest fastcdr)
add_gtest(ConditionTests SOURCES ${CONDITION_TESTS_SOURCE})
endif()
44 changes: 21 additions & 23 deletions test/unittest/dds/core/entity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,27 @@
# limitations under the License.

if(NOT ((MSVC OR MSVC_IDE) AND EPROSIMA_INSTALLER))
if(GTest_FOUND)
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()

set(ENTITY_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/TypesBase.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusCondition.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp
EntityTests.cpp)
set(ENTITY_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/dynamic-types/TypesBase.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/core/condition/StatusCondition.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/Log.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/OStreamConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/fastdds/log/StdoutErrConsumer.cpp
${PROJECT_SOURCE_DIR}/src/cpp/rtps/common/Time_t.cpp
EntityTests.cpp)

add_executable(EntityTests ${ENTITY_TESTS_SOURCE})
target_compile_definitions(EntityTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(EntityTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include)
target_link_libraries(EntityTests GTest::gtest fastcdr)
add_gtest(EntityTests SOURCES ${ENTITY_TESTS_SOURCE})
endif()
add_executable(EntityTests ${ENTITY_TESTS_SOURCE})
target_compile_definitions(EntityTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(EntityTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include)
target_link_libraries(EntityTests GTest::gtest fastcdr)
add_gtest(EntityTests SOURCES ${ENTITY_TESTS_SOURCE})
endif()
46 changes: 21 additions & 25 deletions test/unittest/dds/participant/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,28 @@
# limitations under the License.

if(NOT ((MSVC OR MSVC_IDE) AND EPROSIMA_INSTALLER))
if(GTest_FOUND)
find_package(Threads REQUIRED)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../profiles/test_xml_profiles.xml
${CMAKE_CURRENT_BINARY_DIR}/test_xml_profiles.xml
COPYONLY)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../profiles/test_xml_profiles.xml
${CMAKE_CURRENT_BINARY_DIR}/test_xml_profiles.xml
COPYONLY)
set(PARTICIPANTTESTS_SOURCE ParticipantTests.cpp
)

set(PARTICIPANTTESTS_SOURCE ParticipantTests.cpp
)

if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()

add_executable(ParticipantTests ${PARTICIPANTTESTS_SOURCE})
target_compile_definitions(ParticipantTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(ParticipantTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
${PROJECT_SOURCE_DIR}/src/cpp
)
target_link_libraries(ParticipantTests fastrtps fastcdr foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS})
add_gtest(ParticipantTests SOURCES ${PARTICIPANTTESTS_SOURCE})
if(WIN32)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()

add_executable(ParticipantTests ${PARTICIPANTTESTS_SOURCE})
target_compile_definitions(ParticipantTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(ParticipantTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
${PROJECT_SOURCE_DIR}/src/cpp
)
target_link_libraries(ParticipantTests fastrtps fastcdr foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS})
add_gtest(ParticipantTests SOURCES ${PARTICIPANTTESTS_SOURCE})
endif()
86 changes: 41 additions & 45 deletions test/unittest/dds/publisher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,50 @@
# limitations under the License.

if(NOT ((MSVC OR MSVC_IDE) AND EPROSIMA_INSTALLER))
if(GTest_FOUND )
find_package(Threads REQUIRED)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../profiles/test_xml_profiles.xml
${CMAKE_CURRENT_BINARY_DIR}/test_xml_profiles.xml
COPYONLY)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../profiles/test_xml_profiles.xml
${CMAKE_CURRENT_BINARY_DIR}/test_xml_profiles.xml
COPYONLY)
set(PUBLISHERTESTS_SOURCE PublisherTests.cpp)
set(DATAWRITERTESTS_SOURCE DataWriterTests.cpp)
set(PUBLISHERTESTS_SOURCE PublisherTests.cpp
${PROJECT_SOURCE_DIR}/src/cpp/dds/pub/DataWriter.cpp
)

set(PUBLISHERTESTS_SOURCE PublisherTests.cpp)
set(DATAWRITERTESTS_SOURCE DataWriterTests.cpp)
set(PUBLISHERTESTS_SOURCE PublisherTests.cpp
${PROJECT_SOURCE_DIR}/src/cpp/dds/pub/DataWriter.cpp
if(WIN32)
add_definitions(
-D_WIN32_WINNT=0x0601
-D_CRT_SECURE_NO_WARNINGS
)
endif()

if(WIN32)
add_definitions(
-D_WIN32_WINNT=0x0601
-D_CRT_SECURE_NO_WARNINGS
)
endif()

add_executable(PublisherTests ${PUBLISHERTESTS_SOURCE})
target_compile_definitions(PublisherTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(PublisherTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
${PROJECT_SOURCE_DIR}/src/cpp
)
target_link_libraries(PublisherTests fastrtps fastcdr foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS})
add_gtest(PublisherTests SOURCES ${PUBLISHERTESTS_SOURCE})
add_executable(PublisherTests ${PUBLISHERTESTS_SOURCE})
target_compile_definitions(PublisherTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(PublisherTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
${PROJECT_SOURCE_DIR}/src/cpp
)
target_link_libraries(PublisherTests fastrtps fastcdr foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS})
add_gtest(PublisherTests SOURCES ${PUBLISHERTESTS_SOURCE})

add_executable(DataWriterTests ${DATAWRITERTESTS_SOURCE})
target_compile_definitions(DataWriterTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(DataWriterTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
${PROJECT_SOURCE_DIR}/src/cpp
)
target_link_libraries(DataWriterTests fastrtps fastcdr foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS})
add_gtest(DataWriterTests
SOURCES ${DATAWRITERTESTS_SOURCE}
ENVIRONMENTS "CERTS_PATH=${PROJECT_SOURCE_DIR}/test/certs")
endif()
add_executable(DataWriterTests ${DATAWRITERTESTS_SOURCE})
target_compile_definitions(DataWriterTests PRIVATE FASTRTPS_NO_LIB
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)
target_include_directories(DataWriterTests PRIVATE
${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
${PROJECT_SOURCE_DIR}/src/cpp
)
target_link_libraries(DataWriterTests fastrtps fastcdr foonathan_memory
GTest::gmock
${CMAKE_DL_LIBS})
add_gtest(DataWriterTests
SOURCES ${DATAWRITERTESTS_SOURCE}
ENVIRONMENTS "CERTS_PATH=${PROJECT_SOURCE_DIR}/test/certs")
endif()
Loading

0 comments on commit ca48535

Please sign in to comment.