aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVollstrecker <werner@vollstreckernet.de>2024-12-11 09:10:44 +0100
committerMark Adler <madler@alumni.caltech.edu>2025-01-31 19:59:10 -0800
commitadb40de349d1cda5a24806aa46b1c72251321f35 (patch)
treec1b831dacf8793214c21653060d7f48db117bdbd
parentcff14d5dc3963afa2328767e932edc4466a32fb1 (diff)
downloadzlib-adb40de349d1cda5a24806aa46b1c72251321f35.tar.gz
zlib-adb40de349d1cda5a24806aa46b1c72251321f35.tar.bz2
zlib-adb40de349d1cda5a24806aa46b1c72251321f35.zip
CMake: Indicate a clear signature in add_test.
-rw-r--r--CMakeLists.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66aa96e..583151c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -282,7 +282,7 @@ if(ZLIB_INSTALL_LIBRARIES)
282endif(ZLIB_INSTALL_LIBRARIES) 282endif(ZLIB_INSTALL_LIBRARIES)
283 283
284#============================================================================ 284#============================================================================
285# Example binaries 285# Tests
286#============================================================================ 286#============================================================================
287if(ZLIB_BUILD_TESTING) 287if(ZLIB_BUILD_TESTING)
288 enable_testing() 288 enable_testing()
@@ -290,7 +290,8 @@ if(ZLIB_BUILD_TESTING)
290 if(ZLIB_BUILD_SHARED) 290 if(ZLIB_BUILD_SHARED)
291 add_executable(zlib_example test/example.c) 291 add_executable(zlib_example test/example.c)
292 target_link_libraries(zlib_example ZLIB::ZLIB) 292 target_link_libraries(zlib_example ZLIB::ZLIB)
293 add_test(zlib_example zlib_example) 293 add_test(NAME zlib_example
294 COMMAND zlib_example)
294 295
295 add_executable(minigzip test/minigzip.c) 296 add_executable(minigzip test/minigzip.c)
296 target_compile_definitions(zlib 297 target_compile_definitions(zlib
@@ -305,7 +306,8 @@ if(ZLIB_BUILD_TESTING)
305 LARGEFILE64_SOURCE=1 306 LARGEFILE64_SOURCE=1
306 $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>) 307 $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>)
307 target_link_libraries(zlib_example64 ZLIB::ZLIB) 308 target_link_libraries(zlib_example64 ZLIB::ZLIB)
308 add_test(zlib_example64 zlib_example64) 309 add_test(NAME zlib_example64
310 COMMAND zlib_example64)
309 endif(HAVE_OFF64_T) 311 endif(HAVE_OFF64_T)
310 endif(ZLIB_BUILD_SHARED) 312 endif(ZLIB_BUILD_SHARED)
311 313
@@ -315,7 +317,8 @@ if(ZLIB_BUILD_TESTING)
315 target_compile_definitions(zlib_static_example 317 target_compile_definitions(zlib_static_example
316 PRIVATE 318 PRIVATE
317 $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>) 319 $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>)
318 add_test(zlib_static_example zlib_static_example) 320 add_test(NAME zlib_static_example
321 COMMAND zlib_static_example)
319 322
320 add_executable(static_minigzip test/minigzip.c) 323 add_executable(static_minigzip test/minigzip.c)
321 target_link_libraries(static_minigzip ZLIB::ZLIBSTATIC) 324 target_link_libraries(static_minigzip ZLIB::ZLIBSTATIC)
@@ -327,7 +330,8 @@ if(ZLIB_BUILD_TESTING)
327 LARGEFILE64_SOURCE=1 330 LARGEFILE64_SOURCE=1
328 $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>) 331 $<$<BOOL:${HAVE___ATTR__VIS_HIDDEN}>:HAVE_HIDDEN>)
329 target_link_libraries(zlib_static_example64 ZLIB::ZLIBSTATIC) 332 target_link_libraries(zlib_static_example64 ZLIB::ZLIBSTATIC)
330 add_test(zlib_static_example64 zlib_static_example64) 333 add_test(NAME zlib_static_example64
334 COMMAND zlib_static_example64)
331 endif(HAVE_OFF64_T) 335 endif(HAVE_OFF64_T)
332 endif(ZLIB_BUILD_STATIC) 336 endif(ZLIB_BUILD_STATIC)
333 337