mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Enable "make test" on cmake.
This commit is contained in:
@@ -86,14 +86,11 @@ INSTALL(TARGETS ntcore
|
||||
ARCHIVE DESTINATION lib COMPONENT lib)
|
||||
INSTALL(DIRECTORY include DESTINATION ${CMAKE_INSTALL_PREFIX} COMPONENT headers)
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
# We need thread support
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
enable_testing()
|
||||
|
||||
add_subdirectory(gmock)
|
||||
include_directories("gmock/include")
|
||||
include_directories("gmock/gtest/include")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
file(GLOB SRCS *.cpp)
|
||||
|
||||
add_executable(testntcore ${SRCS})
|
||||
add_test(testntcore testntcore)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(testntcore
|
||||
|
||||
Reference in New Issue
Block a user