
ADD_EXECUTABLE(sentinel_test
        sentinel_test.cc
        ${PROJECT_SOURCE_DIR}/src/sentinel.cc)
TARGET_LINK_LIBRARIES(sentinel_test
        gtest
        gtest_main)
MACRO (M_ADD_MODULE_GTEST name)
    ADD_EXECUTABLE(
            ${name}
            ${ARGN}
    )
    TARGET_LINK_LIBRARIES(sentinel_test
            gtest
            gtest_main)
    ADD_TEST(NAME ${name} COMMAND ${name})
ENDMACRO()


M_ADD_MODULE_GTEST(sentinel_test
        sentinel_test.cc
        ${PROJECT_SOURCE_DIR}/src/sentinel.cc)

Simplify adding new module tests
Simplify adding new module tests
