mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-04 10:58:28 +00:00
Allow lsyncd to be build in the source folder without breaking. Not recommended
This commit is contained in:
parent
818fd4115f
commit
d779eb434f
@ -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"
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user