Allow lsyncd to be build in the source folder without breaking. Not recommended

This commit is contained in:
Daniel Poelzleithner 2022-11-11 19:32:09 +01:00
parent 818fd4115f
commit d779eb434f
2 changed files with 6 additions and 4 deletions

View File

@ -103,13 +103,15 @@ add_custom_target( docs-html
DEPENDS ${CMAKE_SOURCE_DIR}/docs
)
add_custom_command(
OUTPUT tests
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/tests tests)
# create_symlink( ${CMAKE_SOURCE_DIR}/tests tests)
ADD_CUSTOM_TARGET(prepare_tests ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SOURCE_DIR}/tests tests
DEPENDS tests/
)
add_custom_target( tests
add_custom_target( run-tests
COMMAND echo "Running the tests"
COMMAND echo "Note you are expected to:"
COMMAND echo " * have lua-posix installed"

View File

@ -17,5 +17,5 @@ echo "Build folder: $BUILD_FOLDER"
cd $BUILD_FOLDER
cmake $SRC
make VERBOSE=1
make tests
make run-tests
rm -rf $BUILD_FOLDER