diff --git a/CMakeLists.txt b/CMakeLists.txt index 635c3c527..17873e5eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,7 @@ endif() find_package(CUnit) if(CUNIT_FOUND) add_subdirectory(cunit) + enable_testing() endif() # Sub-directories diff --git a/cunit/CMakeLists.txt b/cunit/CMakeLists.txt index c8416834c..10798c64b 100644 --- a/cunit/CMakeLists.txt +++ b/cunit/CMakeLists.txt @@ -63,3 +63,4 @@ target_link_libraries(test_freerdp freerdp-gdi) target_link_libraries(test_freerdp freerdp-utils) target_link_libraries(test_freerdp freerdp-chanman) +add_test(CUnitTests ${EXECUTABLE_OUTPUT_PATH}/test_freerdp)