mirror of https://github.com/lwvmobile/mbelib
parent
1b39cc973f
commit
27b3f1b623
|
|
@ -37,5 +37,6 @@ add_custom_target(uninstall
|
|||
option(DISABLE_TEST "Disable building of test framework." OFF)
|
||||
|
||||
if (NOT DISABLE_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -13,10 +13,7 @@ include_directories(
|
|||
|
||||
link_directories( ${mbe_BINARY_DIR} )
|
||||
|
||||
add_custom_target(test
|
||||
DEPENDS mbetest
|
||||
COMMAND mbetest
|
||||
)
|
||||
|
||||
ADD_EXECUTABLE(mbetest ${SRCS})
|
||||
TARGET_LINK_LIBRARIES(mbetest mbe gmock gtest)
|
||||
|
||||
add_test(gtest mbetest)
|
||||
|
|
|
|||
Loading…
Reference in New Issue