Add tests in such a way that target name is expanded (CMake)

This commit is contained in:
Mike Gelfand 2016-01-04 19:50:32 +00:00
parent 4a634ae026
commit 53c38c760d
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ if(ENABLE_TESTS)
set(TP ${TR_NAME}-test-${T})
add_executable(${TP} ${T}-test.c ${${T}-test_ADD_SOURCES})
target_link_libraries(${TP} ${TR_NAME} ${TR_NAME}-test)
add_test(${T} ${TP})
add_test(NAME ${T} COMMAND ${TP})
set_property(TARGET ${TP} PROPERTY FOLDER "UnitTests")
endforeach()
endif()