summaryrefslogtreecommitdiff
path: root/tests/gdimagecolorreplace
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/gdimagecolorreplace
parentbe219b1a8b40613f70c7bd36f0695430c49617c9 (diff)
downloadlibgd-f8c54a6fd4283efe2e50b73e128aacb6055043b4.tar.gz
get a test executable' location from its target property.
Diffstat (limited to 'tests/gdimagecolorreplace')
-rw-r--r--tests/gdimagecolorreplace/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gdimagecolorreplace/CMakeLists.txt b/tests/gdimagecolorreplace/CMakeLists.txt
index f72ecdb..78cc678 100644
--- a/tests/gdimagecolorreplace/CMakeLists.txt
+++ b/tests/gdimagecolorreplace/CMakeLists.txt
@@ -5,5 +5,6 @@ SET(TESTS_FILES
FOREACH(test_name ${TESTS_FILES})
add_executable(${test_name} "${test_name}.c")
target_link_libraries (${test_name} gdTest ${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)