diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2026-01-03 11:01:40 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 11:10:03 -0800 |
| commit | dc35cccfa70e6d0440b065679680e0e9dc909866 (patch) | |
| tree | 0f66ab23a397eb650dc65a9a8ef563353364d59e /contrib/iostream3 | |
| parent | c6d16d4c3b59d2950e15ee557d40ace748ed5b40 (diff) | |
| download | zlib-dc35cccfa70e6d0440b065679680e0e9dc909866.tar.gz zlib-dc35cccfa70e6d0440b065679680e0e9dc909866.tar.bz2 zlib-dc35cccfa70e6d0440b065679680e0e9dc909866.zip | |
CMake: Name tests consistently.
Diffstat (limited to 'contrib/iostream3')
| -rw-r--r-- | contrib/iostream3/CMakeLists.txt | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/contrib/iostream3/CMakeLists.txt b/contrib/iostream3/CMakeLists.txt index c0dbdcac..9c47c1c1 100644 --- a/contrib/iostream3/CMakeLists.txt +++ b/contrib/iostream3/CMakeLists.txt | |||
| @@ -58,16 +58,16 @@ if(ZLIB_IOSTREAM3_BUILD_SHARED) | |||
| 58 | if(ZLIB_IOSTREAM3_BUILD_TESTING) | 58 | if(ZLIB_IOSTREAM3_BUILD_TESTING) |
| 59 | enable_testing() | 59 | enable_testing() |
| 60 | 60 | ||
| 61 | add_executable(iostream-test test.cc) | 61 | add_executable(zlib_iostream3_test test.cc zfstream.h) |
| 62 | 62 | ||
| 63 | target_link_libraries(iostream-test | 63 | target_link_libraries(zlib_iostream3_test |
| 64 | PRIVATE zlib-iostream3) | 64 | PRIVATE zlib_iostream3_iostream3) |
| 65 | 65 | ||
| 66 | add_test(NAME zlib_iostream3_test COMMAND iostream-test) | 66 | add_test(NAME zlib_iostream3_test COMMAND zlib_iostream3_test) |
| 67 | 67 | ||
| 68 | set_tests_properties(zlib_iostream3_test | 68 | set_tests_properties(zlib_iostream3_test |
| 69 | PROPERTIES | 69 | PROPERTIES |
| 70 | FIXTURES_REQUIRED iostream3_cleanup) | 70 | FIXTURES_REQUIRED zlib_iostream3_cleanup) |
| 71 | endif(ZLIB_IOSTREAM3_BUILD_TESTING) | 71 | endif(ZLIB_IOSTREAM3_BUILD_TESTING) |
| 72 | endif(ZLIB_IOSTREAM3_BUILD_SHARED) | 72 | endif(ZLIB_IOSTREAM3_BUILD_SHARED) |
| 73 | 73 | ||
| @@ -82,22 +82,24 @@ if(ZLIB_IOSTREAM3_BUILD_STATIC) | |||
| 82 | target_link_libraries(zlib_iostream3_iostreamv3Static | 82 | target_link_libraries(zlib_iostream3_iostreamv3Static |
| 83 | INTERFACE ZLIB::ZLIBSTATIC) | 83 | INTERFACE ZLIB::ZLIBSTATIC) |
| 84 | 84 | ||
| 85 | set_target_properties(zlib-iostream3Static | 85 | set_target_properties(zlib_iostream3_iostreamv3Static |
| 86 | PROPERTIES | 86 | PROPERTIES |
| 87 | OUTPUT_NAME zlib-iostream3${zlib_IOStream3_static_suffix}) | 87 | EXPORT_NAME IOSTREAMV3STATIC |
| 88 | OUTPUT_NAME iostream3${zlib_IOStream3_static_suffix}) | ||
| 88 | 89 | ||
| 89 | if(ZLIB_IOSTREAM3_BUILD_TESTING) | 90 | if(ZLIB_IOSTREAM3_BUILD_TESTING) |
| 90 | enable_testing() | 91 | enable_testing() |
| 91 | 92 | ||
| 92 | add_executable(iostream-testStatic test.cc) | 93 | add_executable(zlib_iostream3_testStatic test.cc zfstream.h) |
| 93 | 94 | ||
| 94 | target_link_libraries(iostream-testStatic | 95 | target_link_libraries(zlib_iostream3_testStatic |
| 95 | PRIVATE zlib-iostream3Static) | 96 | PRIVATE zlib_iostream3_iostream3Static) |
| 96 | add_test(NAME zlib_iostream3_testStatic COMMAND iostream-testStatic) | 97 | add_test(NAME zlib_iostream3_testStatic |
| 98 | COMMAND zlib_iostream3_testStatic) | ||
| 97 | 99 | ||
| 98 | set_tests_properties(zlib_iostream3_testStatic | 100 | set_tests_properties(zlib_iostream3_testStatic |
| 99 | PROPERTIES | 101 | PROPERTIES |
| 100 | FIXTURES_REQUIRED iostream3_cleanup) | 102 | FIXTURES_REQUIRED zlib_iostream3_cleanup) |
| 101 | endif(ZLIB_IOSTREAM3_BUILD_TESTING) | 103 | endif(ZLIB_IOSTREAM3_BUILD_TESTING) |
| 102 | endif(ZLIB_IOSTREAM3_BUILD_STATIC) | 104 | endif(ZLIB_IOSTREAM3_BUILD_STATIC) |
| 103 | 105 | ||
