Don't require busted.

Only provide the unittest target if busted was found.  And only build
nvim-test if the unittest target exists by excluding nvim-test from all.
Note: this means nvim-test won't be built by default, but it will be
built when you try to run unittests.
This commit is contained in:
John Szakmeister
2014-03-22 07:14:55 -04:00
parent 9a277a612f
commit 7bd4d68d93
2 changed files with 17 additions and 15 deletions

View File

@@ -55,8 +55,8 @@ if(NOT DEFINED ENV{SKIP_EXEC})
endif()
if(NOT DEFINED ENV{SKIP_UNITTEST})
add_library(nvim-test MODULE ${NEOVIM_SOURCES} ${OS_SOURCES})
target_link_libraries (nvim-test ${NVIM_LINK_LIBRARIES})
add_library(nvim-test MODULE EXCLUDE_FROM_ALL ${NEOVIM_SOURCES} ${OS_SOURCES})
target_link_libraries(nvim-test ${NVIM_LINK_LIBRARIES})
endif()
include_directories ("${PROJECT_SOURCE_DIR}/src/proto")
include_directories("${PROJECT_SOURCE_DIR}/src/proto")