Skip to content

Commit

Permalink
Use cmake's test command
Browse files Browse the repository at this point in the history
Resolves #16
  • Loading branch information
szechyjs committed Dec 3, 2017
1 parent 1b39cc9 commit 27b3f1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
7 changes: 2 additions & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 27b3f1b

Please sign in to comment.