diff --git a/CMakeLists.txt b/CMakeLists.txt index 961826f..41c049a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,6 +174,7 @@ endif() # --- Unit Tests --- if(SOCKPP_BUILD_TESTS) + enable_testing() add_subdirectory(tests/unit) endif() diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 98fadac..4397156 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -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)