cmake: Use CMAKE_CURRENT_BINARY_DIR for tests files.
[vlc.git] / extras / buildsystem / cmake / CMakeLists / src_CMakeLists.txt
index c5118ed..a4c1f97 100644 (file)
@@ -281,9 +281,9 @@ target_link_libraries(url        libvlc)
 target_link_libraries(utf8       libvlc)
 target_link_libraries(dictionary libvlc)
 
-add_test(testapi    ${EXECUTABLE_OUTPUT_PATH}/testapi)
-add_test(i18n_atof  ${EXECUTABLE_OUTPUT_PATH}/i18n_atof)
-add_test(url        ${EXECUTABLE_OUTPUT_PATH}/url)
-add_test(utf8       ${EXECUTABLE_OUTPUT_PATH}/utf8)
-add_test(dictionary ${EXECUTABLE_OUTPUT_PATH}/dictionary)
+add_test(testapi    ${CMAKE_CURRENT_BINARY_DIR}/testapi)
+add_test(i18n_atof  ${CMAKE_CURRENT_BINARY_DIR}/i18n_atof)
+add_test(url        ${CMAKE_CURRENT_BINARY_DIR}/url)
+add_test(utf8       ${CMAKE_CURRENT_BINARY_DIR}/utf8)
+add_test(dictionary ${CMAKE_CURRENT_BINARY_DIR}/dictionary)