forked from TanninOne/usvfs
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMake stuff for new tests after rebase.
- Loading branch information
Showing
8 changed files
with
44 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
find_package(GTest CONFIG REQUIRED) | ||
|
||
add_library(gtest_utils STATIC | ||
gtest_utils.cpp | ||
gtest_utils.h | ||
) | ||
set_target_properties(gtest_utils PROPERTIES FOLDER tests) | ||
target_link_libraries(gtest_utils PUBLIC GTest::gtest) | ||
target_include_directories(gtest_utils PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
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
File renamed without changes.
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,22 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
find_package(GTest CONFIG REQUIRED) | ||
|
||
# other executables | ||
add_executable(usvfs_global_test | ||
usvfs_global_test/usvfs_global_test.cpp | ||
) | ||
usvfs_set_test_properties(usvfs_global_test FOLDER usvfs_global_test) | ||
target_link_libraries(usvfs_global_test PRIVATE gtest_utils GTest::gtest_main) | ||
|
||
# actual test executable | ||
add_executable(usvfs_global_test_runner | ||
usvfs_global_test_fixture.cpp | ||
usvfs_global_test_fixture.h | ||
usvfs_global_test_runner.cpp | ||
) | ||
usvfs_set_test_properties(usvfs_global_test_runner FOLDER usvfs_global_test) | ||
usvfs_target_link_usvfs(usvfs_global_test_runner) | ||
target_link_libraries(usvfs_global_test_runner | ||
PRIVATE test_utils gtest_utils GTest::gtest_main) | ||
add_dependencies(usvfs_global_test_runner usvfs_global_test) |
5 changes: 4 additions & 1 deletion
5
test/usvfs_global_test/usvfs_global_test.cpp → ...r/usvfs_global_test/usvfs_global_test.cpp
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