Add "make test" support to build system.

This commit is contained in:
Brad Hards 2011-07-26 11:50:45 +10:00
parent 885059e11b
commit 63f6026ce1
2 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,7 @@ endif()
find_package(CUnit)
if(CUNIT_FOUND)
add_subdirectory(cunit)
enable_testing()
endif()
# Sub-directories

View File

@ -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)