AddClarTest.cmake 351 Bytes
Newer Older
1 2 3 4 5 6 7
function(ADD_CLAR_TEST project name)
        if(NOT USE_LEAK_CHECKER STREQUAL "OFF")
                add_test(${name} "${PROJECT_SOURCE_DIR}/script/${USE_LEAK_CHECKER}.sh" "${PROJECT_BINARY_DIR}/${project}" ${ARGN})
        else()
                add_test(${name} "${PROJECT_BINARY_DIR}/${project}" ${ARGN})
        endif()
endfunction(ADD_CLAR_TEST)