Skip to content

Commit

Permalink
Improve Working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Dec 11, 2023
1 parent bbe816a commit aeb8664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ if (WITH_TESTS)
add_executable(${TESTTCP} ${TESTTCP_SOURCES})
target_link_libraries(${TESTLO} PRIVATE Threads::Threads)
target_link_libraries(${TESTTCP} PRIVATE Threads::Threads)
add_test(${TESTLO} tests/${TESTLO})
add_test("test-bidirectional-tcp" tests/${TESTTCP})
add_test(NAME ${TESTLO} COMMAND ${TESTLO} WORKING_DIRECTORY $<TARGET_FILE_DIR:${TESTLO}>)
add_test(NAME "test-bidirectional-tcp" COMMAND ${TESTTCP} WORKING_DIRECTORY $<TARGET_FILE_DIR:${TESTTCP}>)
enable_testing()
endif()
if (WITH_CPP_TESTS)
add_executable(${CPPTEST} ${CPPTEST_SOURCES})
add_test(${CPPTEST} tests/${CPPTEST})
add_test(NAME ${CPPTEST} COMMAND ${CPPTEST} WORKING_DIRECTORY $<TARGET_FILE_DIR:${CPPTEST}>)
endif()

# Examples
Expand Down

0 comments on commit aeb8664

Please sign in to comment.