summaryrefslogtreecommitdiff
path: root/tests/gdimagecolorexact
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gdimagecolorexact')
-rw-r--r--tests/gdimagecolorexact/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gdimagecolorexact/CMakeLists.txt b/tests/gdimagecolorexact/CMakeLists.txt
index cf68e3b..e55f4c5 100644
--- a/tests/gdimagecolorexact/CMakeLists.txt
+++ b/tests/gdimagecolorexact/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)