Update CMakeLists.txt to support gtest linking for Windows

This commit is contained in:
Russel Waters 2018-03-02 09:51:08 -05:00 committed by androm3da
commit 8283b56a5d

View file

@ -142,6 +142,11 @@ else ()
set (ARGON_CORE phc-winner-argon2/src/ref.c)
endif ()
if (WIN32)
set (gtest_force_shared_crt ON)
else ()
set (gtest_force_shared_crt OFF)
endif()
add_subdirectory (gtest)
include_directories ("gtest/include")