From d3d329fb431daadf2b90cdb6a75ff64c515580fa Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Sun, 6 Aug 2017 09:16:52 -0700 Subject: [PATCH] add gtest build --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30fa9a5..ffac343 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,6 +173,13 @@ include_directories(${CMAKE_CURRENT_LIST_DIR}/${EASYLOGGING_DIR}/src) link_directories(${CMAKE_BINARY_DIR}/${EASYLOGGING_DIR}) set(EASYLOGGING_LIBRARIES easyloggingpp) +# TODO: add behind TEST flag. +message("-- Including vendored googletest") +set(GOOGLETEST_DIR vendor/github.com/google/googletest) +add_subdirectory(${GOOGLETEST_DIR}) +link_directories(${CMAKE_BINARY_DIR}/${GOOGLETEST_DIR}/googletest) +set(GOOGLETEST_LIBRARIES gtest) + set(SOURCE_FILES encfs/autosprintf.cpp encfs/base64.cpp