xo-umbrella2/xo-unit/utest/CMakeLists.txt
Roland Conybeare ae1c192a3d
Some checks failed
cmake-docker / cmake-build (clang, clang++) (push) Failing after 22m27s
cmake-docker / cmake-build (gcc, g++) (push) Failing after 21m33s
CI / smoke-test (push) Failing after 28m58s
xo-unit: use xo-ppsink !xo-indentlog [REFACTOR]
2026-08-06 08:52:20 -04:00

30 lines
894 B
CMake

# xo-unit/utest/CMakeLists.txt
set(SELF_EXE utest.unit)
set(SELF_SRCS
unit_utest_main.cpp #mpl_unit.test.cpp
xquantity.test.cpp
quantity.test.cpp
bpu.test.cpp
basis_unit.test.cpp
scaled_unit.test.cpp
natural_unit.test.cpp
unit.test.cpp #quantity.test.cpp
)
if (ENABLE_TESTING)
xo_add_utest_executable(${SELF_EXE} ${SELF_SRCS})
# ----------------------------------------------------------------
# dependencies..
xo_self_dependency(${SELF_EXE} xo_unit)
xo_headeronly_dependency(${SELF_EXE} xo_ratio)
# at least need explicit {xo_ppsink, randomgen} deps in a submodule build
# xo_dependency, not headeronly: xo-ppsink is a compiled library
xo_dependency(${SELF_EXE} xo_ppsink)
xo_headeronly_dependency(${SELF_EXE} randomgen)
xo_external_target_dependency(${SELF_EXE} Catch2 Catch2::Catch2)
endif()
# end CMakeLists.txt