diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2024-12-01 09:49:36 +0100 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2025-01-31 19:58:40 -0800 |
| commit | 676246752388ad183594765a49f6b159c2a53db2 (patch) | |
| tree | d920d1cfe5b325670f04dd82b401426632bce957 | |
| parent | 76c6a8601cc1267a7198c5b6ecc6cfa207825e5b (diff) | |
| download | zlib-676246752388ad183594765a49f6b159c2a53db2.tar.gz zlib-676246752388ad183594765a49f6b159c2a53db2.tar.bz2 zlib-676246752388ad183594765a49f6b159c2a53db2.zip | |
CMake: Rename examples and tests to avoid chain building confusion.
| -rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a1b621..4f2babc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -235,18 +235,18 @@ endif() | |||
| 235 | # Example binaries | 235 | # Example binaries |
| 236 | #============================================================================ | 236 | #============================================================================ |
| 237 | if(ZLIB_BUILD_EXAMPLES) | 237 | if(ZLIB_BUILD_EXAMPLES) |
| 238 | add_executable(example test/example.c) | 238 | add_executable(zlib_example test/example.c) |
| 239 | target_link_libraries(example zlib) | 239 | target_link_libraries(zlib_example zlib) |
| 240 | add_test(example example) | 240 | add_test(zlib_example zlib_example) |
| 241 | 241 | ||
| 242 | add_executable(minigzip test/minigzip.c) | 242 | add_executable(minigzip test/minigzip.c) |
| 243 | target_link_libraries(minigzip zlib) | 243 | target_link_libraries(minigzip zlib) |
| 244 | 244 | ||
| 245 | if(HAVE_OFF64_T) | 245 | if(HAVE_OFF64_T) |
| 246 | add_executable(example64 test/example.c) | 246 | add_executable(zlib_example64 test/example.c) |
| 247 | target_link_libraries(example64 zlib) | 247 | target_link_libraries(zlib_example64 zlib) |
| 248 | set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") | 248 | set_target_properties(zlib_example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") |
| 249 | add_test(example64 example64) | 249 | add_test(zlib_example64 zlib_example64) |
| 250 | 250 | ||
| 251 | add_executable(minigzip64 test/minigzip.c) | 251 | add_executable(minigzip64 test/minigzip.c) |
| 252 | target_link_libraries(minigzip64 zlib) | 252 | target_link_libraries(minigzip64 zlib) |
