mirror of
https://github.com/fpagliughi/sockpp.git
synced 2026-01-12 00:04:45 +08:00
Enabled tests in CMake
This commit is contained in:
@@ -174,6 +174,7 @@ endif()
|
||||
# --- Unit Tests ---
|
||||
|
||||
if(SOCKPP_BUILD_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(tests/unit)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user