Add updater_ prefix to test target names

This avoids a conflict with CMake targets that happen to have
the same name in Mendeley's main CMake project.

MD-19678 #time 10m
This commit is contained in:
Robert Knight 2013-09-03 16:34:02 +01:00
parent d25cfb8583
commit 83b2697b52

View file

@ -31,7 +31,7 @@ endforeach()
# Add unit test binaries # Add unit test binaries
macro(ADD_UPDATER_TEST CLASS) macro(ADD_UPDATER_TEST CLASS)
set(TEST_TARGET ${CLASS}) set(TEST_TARGET updater_${CLASS})
add_executable(${TEST_TARGET} ${CLASS}.cpp) add_executable(${TEST_TARGET} ${CLASS}.cpp)
target_link_libraries(${TEST_TARGET} updatershared) target_link_libraries(${TEST_TARGET} updatershared)
add_test(${TEST_TARGET} ${TEST_TARGET}) add_test(${TEST_TARGET} ${TEST_TARGET})
@ -47,5 +47,5 @@ add_updater_test(TestFileUtils)
# Add updater that that performs a complete update install # Add updater that that performs a complete update install
# and checks the result # and checks the result
find_program(RUBY_BIN ruby) find_program(RUBY_BIN ruby)
add_test(TestUpdateInstall ${RUBY_BIN} test-update.rb) add_test(updater_TestUpdateInstall ${RUBY_BIN} test-update.rb)