testing: fix execution of test tdeabc/vcardparser/testread2 with CMake older than 2.8.4

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d8d8c5e060)
v3.5.13-sru
Slávek Banko 8 years ago
parent 192338ff19
commit eac0d38823

@ -73,6 +73,12 @@ tde_add_check_executable( testread2
LINK ${TDEABC_TESTS_LINK}
)
if( CMAKE_VERSION VERSION_LESS "2.8.4" )
if( NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/tests" )
execute_process( COMMAND ln -s "${CMAKE_CURRENT_SOURCE_DIR}/tests" "${CMAKE_CURRENT_BINARY_DIR}/tests" )
endif( )
endif()
add_test( NAME kabc/vcardparser/testread2 COMMAND testread2 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" )
# testread tests

Loading…
Cancel
Save