2017-12-28 11:43:15 -07:00
|
|
|
project(${CMAKE_PROJECT_NAME}_tests)
|
|
|
|
|
2017-12-28 15:24:50 -07:00
|
|
|
# Clone Google Test
|
|
|
|
set(GOOGLETEST_DIR ${CMAKE_SOURCE_DIR}/tests/lib/googletest)
|
|
|
|
if(NOT EXISTS ${GOOGLETEST_DIR})
|
|
|
|
find_package(Git REQUIRED)
|
|
|
|
execute_process(
|
|
|
|
COMMAND ${GIT_EXECUTABLE} clone https://github.com/google/googletest ${GOOGLETEST_DIR}
|
|
|
|
)
|
2017-12-28 11:43:15 -07:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(lib/googletest)
|
|
|
|
add_subdirectory(unit_tests)
|