diff options
author | Nathanael Jones <nathanael.jones@gmail.com> | 2014-10-17 11:28:56 -0400 |
---|---|---|
committer | Nathanael Jones <nathanael.jones@gmail.com> | 2015-01-07 01:39:10 -0500 |
commit | b52b9c5579f73b3e6370532a6d7c0199deb0ed7d (patch) | |
tree | af70f143cf0068a3ee31bfc0b2ab0dc711ec7a82 /tests | |
parent | e8a1a4699a9ab505012b17e4d7cc9c4cb969b4eb (diff) | |
download | libgd-b52b9c5579f73b3e6370532a6d7c0199deb0ed7d.tar.gz |
Upgrade to long-syntax CMAKE add_test command to improve cross-platform compatibility.
Diffstat (limited to 'tests')
37 files changed, 37 insertions, 74 deletions
diff --git a/tests/bmp/CMakeLists.txt b/tests/bmp/CMakeLists.txt index 3e456f7..751c303 100644 --- a/tests/bmp/CMakeLists.txt +++ b/tests/bmp/CMakeLists.txt @@ -7,6 +7,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest ${GD_LIB}) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/freetype/CMakeLists.txt b/tests/freetype/CMakeLists.txt index dbc580e..6e42f30 100644 --- a/tests/freetype/CMakeLists.txt +++ b/tests/freetype/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gd/CMakeLists.txt b/tests/gd/CMakeLists.txt index ccda060..c532717 100644 --- a/tests/gd/CMakeLists.txt +++ b/tests/gd/CMakeLists.txt @@ -9,6 +9,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gd2/CMakeLists.txt b/tests/gd2/CMakeLists.txt index c9bd5e5..68a064c 100644 --- a/tests/gd2/CMakeLists.txt +++ b/tests/gd2/CMakeLists.txt @@ -9,6 +9,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagearc/CMakeLists.txt b/tests/gdimagearc/CMakeLists.txt index 82cc9b8..4725dae 100644 --- a/tests/gdimagearc/CMakeLists.txt +++ b/tests/gdimagearc/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecolorclosest/CMakeLists.txt b/tests/gdimagecolorclosest/CMakeLists.txt index 1b2f83e..30a47c0 100644 --- a/tests/gdimagecolorclosest/CMakeLists.txt +++ b/tests/gdimagecolorclosest/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecolordeallocate/CMakeLists.txt b/tests/gdimagecolordeallocate/CMakeLists.txt index 996bd24..7958cd6 100644 --- a/tests/gdimagecolordeallocate/CMakeLists.txt +++ b/tests/gdimagecolordeallocate/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecolorexact/CMakeLists.txt b/tests/gdimagecolorexact/CMakeLists.txt index a724d13..f62bc26 100644 --- a/tests/gdimagecolorexact/CMakeLists.txt +++ b/tests/gdimagecolorexact/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecolorreplace/CMakeLists.txt b/tests/gdimagecolorreplace/CMakeLists.txt index f88a8a0..915d9d4 100644 --- a/tests/gdimagecolorreplace/CMakeLists.txt +++ b/tests/gdimagecolorreplace/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecolorresolve/CMakeLists.txt b/tests/gdimagecolorresolve/CMakeLists.txt index 2ab9444..4b91825 100644 --- a/tests/gdimagecolorresolve/CMakeLists.txt +++ b/tests/gdimagecolorresolve/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecolortransparent/CMakeLists.txt b/tests/gdimagecolortransparent/CMakeLists.txt index 9e6c82f..5f580f7 100644 --- a/tests/gdimagecolortransparent/CMakeLists.txt +++ b/tests/gdimagecolortransparent/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecopy/CMakeLists.txt b/tests/gdimagecopy/CMakeLists.txt index 209257a..0b0ccdd 100644 --- a/tests/gdimagecopy/CMakeLists.txt +++ b/tests/gdimagecopy/CMakeLists.txt @@ -6,6 +6,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagecopyrotated/CMakeLists.txt b/tests/gdimagecopyrotated/CMakeLists.txt index 4a0e083..7f75aa7 100644 --- a/tests/gdimagecopyrotated/CMakeLists.txt +++ b/tests/gdimagecopyrotated/CMakeLists.txt @@ -6,6 +6,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagefill/CMakeLists.txt b/tests/gdimagefill/CMakeLists.txt index c0fe799..ef85f1c 100644 --- a/tests/gdimagefill/CMakeLists.txt +++ b/tests/gdimagefill/CMakeLists.txt @@ -8,6 +8,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagefilledellipse/CMakeLists.txt b/tests/gdimagefilledellipse/CMakeLists.txt index 8d047e7..fb1ed6c 100644 --- a/tests/gdimagefilledellipse/CMakeLists.txt +++ b/tests/gdimagefilledellipse/CMakeLists.txt @@ -7,6 +7,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagefilledpolygon/CMakeLists.txt b/tests/gdimagefilledpolygon/CMakeLists.txt index be8ab7c..2ca4bf5 100644 --- a/tests/gdimagefilledpolygon/CMakeLists.txt +++ b/tests/gdimagefilledpolygon/CMakeLists.txt @@ -9,6 +9,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagefilledrectangle/CMakeLists.txt b/tests/gdimagefilledrectangle/CMakeLists.txt index 9a82b99..7392070 100644 --- a/tests/gdimagefilledrectangle/CMakeLists.txt +++ b/tests/gdimagefilledrectangle/CMakeLists.txt @@ -7,6 +7,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagefilltoborder/CMakeLists.txt b/tests/gdimagefilltoborder/CMakeLists.txt index 966bff0..e24a69a 100644 --- a/tests/gdimagefilltoborder/CMakeLists.txt +++ b/tests/gdimagefilltoborder/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimageline/CMakeLists.txt b/tests/gdimageline/CMakeLists.txt index fb3212e..78f11d4 100644 --- a/tests/gdimageline/CMakeLists.txt +++ b/tests/gdimageline/CMakeLists.txt @@ -9,6 +9,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimageopenpolygon/CMakeLists.txt b/tests/gdimageopenpolygon/CMakeLists.txt index 09a2267..4e54fff 100644 --- a/tests/gdimageopenpolygon/CMakeLists.txt +++ b/tests/gdimageopenpolygon/CMakeLists.txt @@ -8,6 +8,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagepixelate/CMakeLists.txt b/tests/gdimagepixelate/CMakeLists.txt index 1f11825..2d10b21 100644 --- a/tests/gdimagepixelate/CMakeLists.txt +++ b/tests/gdimagepixelate/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagepolygon/CMakeLists.txt b/tests/gdimagepolygon/CMakeLists.txt index 92802ec..679e939 100644 --- a/tests/gdimagepolygon/CMakeLists.txt +++ b/tests/gdimagepolygon/CMakeLists.txt @@ -8,6 +8,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagerectangle/CMakeLists.txt b/tests/gdimagerectangle/CMakeLists.txt index 223b381..2c73ef9 100644 --- a/tests/gdimagerectangle/CMakeLists.txt +++ b/tests/gdimagerectangle/CMakeLists.txt @@ -6,6 +6,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagerotate/CMakeLists.txt b/tests/gdimagerotate/CMakeLists.txt index 6aa98d2..3dde7a5 100644 --- a/tests/gdimagerotate/CMakeLists.txt +++ b/tests/gdimagerotate/CMakeLists.txt @@ -6,6 +6,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagescatterex/CMakeLists.txt b/tests/gdimagescatterex/CMakeLists.txt index 3e51d34..13de90a 100644 --- a/tests/gdimagescatterex/CMakeLists.txt +++ b/tests/gdimagescatterex/CMakeLists.txt @@ -6,6 +6,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagesetpixel/CMakeLists.txt b/tests/gdimagesetpixel/CMakeLists.txt index 907616d..1fb1f38 100644 --- a/tests/gdimagesetpixel/CMakeLists.txt +++ b/tests/gdimagesetpixel/CMakeLists.txt @@ -7,6 +7,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagestringft/CMakeLists.txt b/tests/gdimagestringft/CMakeLists.txt index 7ff29cb..c3338c0 100644 --- a/tests/gdimagestringft/CMakeLists.txt +++ b/tests/gdimagestringft/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdimagestringftex/CMakeLists.txt b/tests/gdimagestringftex/CMakeLists.txt index 7252bd2..5d26668 100644 --- a/tests/gdimagestringftex/CMakeLists.txt +++ b/tests/gdimagestringftex/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdnewfilectx/CMakeLists.txt b/tests/gdnewfilectx/CMakeLists.txt index 75de828..9fd4caf 100644 --- a/tests/gdnewfilectx/CMakeLists.txt +++ b/tests/gdnewfilectx/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gdtiled/CMakeLists.txt b/tests/gdtiled/CMakeLists.txt index 90e15da..cc47150 100644 --- a/tests/gdtiled/CMakeLists.txt +++ b/tests/gdtiled/CMakeLists.txt @@ -5,6 +5,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/gif/CMakeLists.txt b/tests/gif/CMakeLists.txt index a155559..a64f785 100644 --- a/tests/gif/CMakeLists.txt +++ b/tests/gif/CMakeLists.txt @@ -14,6 +14,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/jpeg/CMakeLists.txt b/tests/jpeg/CMakeLists.txt index d68028b..9151f60 100644 --- a/tests/jpeg/CMakeLists.txt +++ b/tests/jpeg/CMakeLists.txt @@ -10,6 +10,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/png/CMakeLists.txt b/tests/png/CMakeLists.txt index dd0b4c4..128b51d 100644 --- a/tests/png/CMakeLists.txt +++ b/tests/png/CMakeLists.txt @@ -13,6 +13,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/tga/CMakeLists.txt b/tests/tga/CMakeLists.txt index a88872a..48f9412 100644 --- a/tests/tga/CMakeLists.txt +++ b/tests/tga/CMakeLists.txt @@ -6,6 +6,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/tiff/CMakeLists.txt b/tests/tiff/CMakeLists.txt index aefdaf7..da49800 100644 --- a/tests/tiff/CMakeLists.txt +++ b/tests/tiff/CMakeLists.txt @@ -7,6 +7,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/wbmp/CMakeLists.txt b/tests/wbmp/CMakeLists.txt index aac4f69..531933a 100644 --- a/tests/wbmp/CMakeLists.txt +++ b/tests/wbmp/CMakeLists.txt @@ -7,6 +7,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) diff --git a/tests/xpm/CMakeLists.txt b/tests/xpm/CMakeLists.txt index f90d3c6..e0a789c 100644 --- a/tests/xpm/CMakeLists.txt +++ b/tests/xpm/CMakeLists.txt @@ -8,6 +8,5 @@ SET(TESTS_FILES FOREACH(test_name ${TESTS_FILES}) add_executable(${test_name} "${test_name}.c") target_link_libraries (${test_name} gdTest) - get_target_property(test_path ${test_name} LOCATION) - ADD_TEST(${test_name} ${test_path}) + add_test(NAME ${test_name} COMMAND ${test_name}) ENDFOREACH(test_name) |