summaryrefslogtreecommitdiff
path: root/tests/gdimagecopy
diff options
context:
space:
mode:
authortabe <none@none>2009-01-07 15:12:31 +0000
committertabe <none@none>2009-01-07 15:12:31 +0000
commitf8c54a6fd4283efe2e50b73e128aacb6055043b4 (patch)
treed0524d204a23d6c519e4911bf684979b618a0b07 /tests/gdimagecopy
parentbe219b1a8b40613f70c7bd36f0695430c49617c9 (diff)
downloadlibgd-f8c54a6fd4283efe2e50b73e128aacb6055043b4.tar.gz
get a test executable' location from its target property.
Diffstat (limited to 'tests/gdimagecopy')
-rw-r--r--tests/gdimagecopy/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gdimagecopy/CMakeLists.txt b/tests/gdimagecopy/CMakeLists.txt
index d6af82a..12830bc 100644
--- a/tests/gdimagecopy/CMakeLists.txt
+++ b/tests/gdimagecopy/CMakeLists.txt
@@ -6,5 +6,6 @@ SET(TESTS_FILES
FOREACH(test_name ${TESTS_FILES})
add_executable(${test_name} "${test_name}.c")
target_link_libraries (${test_name} ${GDTESTS_TARGET_LINK})
- ADD_TEST(${test_name} ${EXECUTABLE_OUTPUT_PATH}/${test_name})
+ get_target_property(test_path ${test_name} LOCATION)
+ ADD_TEST(${test_name} ${test_path})
ENDFOREACH(test_name)