model: add git tests to CMake

Summary: All the tests are passing.

Reviewed By: chadaustin

Differential Revision: D21341730

fbshipit-source-id: 90a3872b190879ec163935ff53703157028f87bc
This commit is contained in:
Xavier Deguillard 2020-05-07 10:04:38 -07:00 committed by Facebook GitHub Bot
parent e6ac99b269
commit a351d8d136
2 changed files with 21 additions and 0 deletions

View File

@ -13,3 +13,5 @@ target_link_libraries(
PUBLIC
eden_model
)
add_subdirectory(test)

View File

@ -0,0 +1,19 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
file(GLOB MODEL_GIT_TEST_SRCS "*Test.cpp")
add_executable(
eden_model_git_test
${MODEL_GIT_TEST_SRCS}
)
target_link_libraries(
eden_model_git_test
PRIVATE
eden_model_git
${LIBGMOCK_LIBRARIES}
)
gtest_discover_tests(eden_model_git_test)