mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 16:28:09 +08:00
add working directory to test
This commit is contained in:
@@ -9,6 +9,7 @@ set(TEST_NAMES
|
||||
test_datetime
|
||||
test_acceptor
|
||||
test_parser
|
||||
test_parse_file
|
||||
)
|
||||
|
||||
add_definitions("-Wall -Wpedantic")
|
||||
@@ -24,5 +25,5 @@ endif()
|
||||
foreach(TEST_NAME ${TEST_NAMES})
|
||||
add_executable(${TEST_NAME} ${TEST_NAME}.cpp)
|
||||
target_link_libraries(${TEST_NAME} ${test_library_dependencies})
|
||||
add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME})
|
||||
add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/build)
|
||||
endforeach(TEST_NAME)
|
||||
|
Reference in New Issue
Block a user