forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will make it easier to add tests in the future. It also unifies the lists of MPC-build OpenDDS CMake tests and the CMake-build tests. Also: - Promoted Messenger_2 CMake test to `tests/DCPS/Messenger`. - Various cleanup to the various test CMakeLists files.
- Loading branch information
1 parent
809b147
commit 6c8ac5e
Showing
14 changed files
with
113 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
cmake_minimum_required(VERSION 3.3...3.27) | ||
project(opendds_tests) | ||
enable_testing() | ||
|
||
find_package(OpenDDS REQUIRED) | ||
|
||
find_package(GTest QUIET PATHS "${OPENDDS_GTEST}") | ||
if(NOT GTest_FOUND) | ||
set(gtestsm "${CMAKE_CURRENT_LIST_DIR}/googletest") | ||
if(EXISTS "${gtestsm}/CMakeLists.txt") | ||
message("GTest not found, using submodule") | ||
set(fetch_args SOURCE_DIR "${gtestsm}") | ||
else() | ||
message("GTest not found, using clone") | ||
set(fetch_args | ||
GIT_REPOSITORY "https://github.com/OpenDDS/googletest" | ||
GIT_TAG "v1.8.x" | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
USES_TERMINAL_DOWNLOAD TRUE | ||
) | ||
endif() | ||
FetchContent_Declare(googletest ${fetch_args}) | ||
# Prevent overriding the parent project's compiler/linker | ||
# settings on Windows | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) | ||
FetchContent_MakeAvailable(googletest) | ||
endif() | ||
if(TARGET GTest::gtest) | ||
get_target_property(google_test_bin_dir GTest::gtest BINARY_DIR) | ||
set(_OPENDDS_GOOGLE_TEST_DIR "${google_test_bin_dir}" CACHE INTERNAL "") | ||
elseif(TARGET gtest) | ||
get_target_property(google_test_bin_dir gtest BINARY_DIR) | ||
set(_OPENDDS_GOOGLE_TEST_DIR "${google_test_bin_dir}" CACHE INTERNAL "") | ||
endif() | ||
|
||
add_subdirectory(cmake) | ||
add_subdirectory(DCPS) | ||
add_subdirectory(unit-tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.3...3.27) | ||
project(opendds_tests_dcps) | ||
enable_testing() | ||
|
||
find_package(OpenDDS REQUIRED) | ||
|
||
add_subdirectory(Compiler) | ||
add_subdirectory(HelloWorld) | ||
add_subdirectory(Messenger) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.3...3.27) | ||
project(opendds_tests_dcps_compiler) | ||
enable_testing() | ||
|
||
find_package(OpenDDS REQUIRED) | ||
|
||
add_subdirectory(char_literals) | ||
add_subdirectory(optional) | ||
add_subdirectory(xcdr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters