# ===========================================================================
# tests/units/CMakeLists.txt
# --------------------
#
# CMakeLists.txt in charge of creating the actual unit test targets. A
# single target for each library component is configured.
# --------------------------------------------------------------------
#
# author : Emanuele Parisi
# ===========================================================================

# ---------------------------------------------------------------------------
# Enable testing.
# ---------------------------------------------------------------------------

enable_testing()

# ---------------------------------------------------------------------------
# Create unit test targets.
# ---------------------------------------------------------------------------

add_executable(cpputils_units_stats
               stats/test_chronometer.cpp
               stats/test_stats.cpp)
target_link_libraries(cpputils_units_stats
                      PUBLIC
                      CppUtils_Test)

add_executable(cpputils_units_log
               log/test_sink_stdout.cpp
               log/test_logger.cpp
               log/test_log.cpp)
target_link_libraries(cpputils_units_log
                      PUBLIC
                      CppUtils_Test)
