Commit c2e48e4d authored by Joshua Warner's avatar Joshua Warner

add helpful error message if gtest isn't set up

parent 8174027c
......@@ -3,8 +3,13 @@ cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -std=c++11")
add_subdirectory(gtest)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/gtest/include)
if(EXISTS "${dir}" AND IS_DIRECTORY "${dir}")
add_subdirectory(gtest)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/gtest/include)
else()
message(FATAL_ERROR "Please use setup-gtest.sh to download gtest before running the cmake build")
endif()
include(CTest)
add_subdirectory(src)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment