mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Allow building of tests to be disabled in cmake.
Defining WITHOUT_TESTS will result in tests not being built. Fixes #38.
This commit is contained in:
@@ -89,10 +89,11 @@ 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")
|
||||
add_subdirectory(test)
|
||||
if (NOT WITHOUT_TESTS)
|
||||
enable_testing()
|
||||
|
||||
add_subdirectory(gmock)
|
||||
include_directories("gmock/include")
|
||||
include_directories("gmock/gtest/include")
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user