mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
Add tests in such a way that target name is expanded (CMake)
This commit is contained in:
parent
4a634ae026
commit
53c38c760d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue