CMakeLists.txt: Call enable_testing before processing cunit subdirectory

Otherwise, add_test does nothing.
This commit is contained in:
Mike Gilbert 2011-09-04 21:41:52 -04:00
parent bbaceb75e2
commit a9fe22921a

View File

@ -118,8 +118,8 @@ endif()
# Build CUnit
find_optional_package(CUnit)
if(CUNIT_FOUND)
add_subdirectory(cunit)
enable_testing()
add_subdirectory(cunit)
endif()
# Sub-directories