mirror of
https://github.com/git/git.git
synced 2024-05-09 10:16:08 +02:00
Merge branch 'js/cmake-with-test-tool' into seen
"test-tool" is now built in CMake build to also run the unit tests. * js/cmake-with-test-tool: cmake: let `test-tool` run the unit tests, too
This commit is contained in:
commit
d01c32bd0f
|
@ -1005,10 +1005,11 @@ endforeach()
|
|||
|
||||
#test-tool
|
||||
parse_makefile_for_sources(test-tool_SOURCES "TEST_BUILTINS_OBJS")
|
||||
add_library(test-lib OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/test-lib.c)
|
||||
|
||||
list(TRANSFORM test-tool_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/t/helper/")
|
||||
add_executable(test-tool ${CMAKE_SOURCE_DIR}/t/helper/test-tool.c ${test-tool_SOURCES} ${test-reftable_SOURCES})
|
||||
target_link_libraries(test-tool common-main)
|
||||
target_link_libraries(test-tool test-lib common-main)
|
||||
|
||||
set_target_properties(test-fake-ssh test-tool
|
||||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/t/helper)
|
||||
|
|
Loading…
Reference in New Issue