test/CleanProfileData.cmake
author Tero Marttila <terom@fixme.fi>
Fri, 08 May 2009 00:25:54 +0300
changeset 191 031582f7b61b
parent 187 5d100c79521a
permissions -rw-r--r--
add support for valgrind to test, and update old suppressions file
# 
# CMake script to clean out all *.gcda files from TEST_OBJECT_DIR
#

# get list
file (GLOB_RECURSE GCDA_FILES "${TEST_OBJECT_DIR}/*.gcda")

if (GCDA_FILES)
    message (STATUS "removing .gcda: ${GCDA_FILES}")

    # hehehe... dangerous?
    file (REMOVE ${GCDA_FILES})
endif (GCDA_FILES)