diff options
author | tabe <none@none> | 2009-01-07 15:12:31 +0000 |
---|---|---|
committer | tabe <none@none> | 2009-01-07 15:12:31 +0000 |
commit | f8c54a6fd4283efe2e50b73e128aacb6055043b4 (patch) | |
tree | d0524d204a23d6c519e4911bf684979b618a0b07 /tests/gdimagecopy | |
parent | be219b1a8b40613f70c7bd36f0695430c49617c9 (diff) | |
download | libgd-f8c54a6fd4283efe2e50b73e128aacb6055043b4.tar.gz |
get a test executable' location from its target property.
Diffstat (limited to 'tests/gdimagecopy')
-rw-r--r-- | tests/gdimagecopy/CMakeLists.txt | 3 |
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) |