summaryrefslogtreecommitdiff
path: root/cmake/AddClarTest.cmake
blob: 74394163825fc7df1663f1e0bacaec31b4b66e16 (plain)
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)