Enabled tests in CMake

This commit is contained in:
fpagliughi
2025-03-30 17:00:30 -04:00
parent 071456d7f3
commit afdeacba94
2 changed files with 5 additions and 0 deletions

View File

@@ -174,6 +174,7 @@ endif()
# --- Unit Tests ---
if(SOCKPP_BUILD_TESTS)
enable_testing()
add_subdirectory(tests/unit)
endif()

View File

@@ -36,6 +36,10 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# --------------------------------------------------------------------------
message(STATUS "Building sockpp unit tests")
# --- Get Catch2 ---
set(UNIT_TEST_DIR ${PROJECT_SOURCE_DIR})
find_package(Catch2 REQUIRED)