include_guard(GLOBAL)

function(me_add_cmake_test cmake_file)
    add_test(
        NAME ${cmake_file}
        COMMAND ${CMAKE_COMMAND} "--log-level=TRACE" "-DME_BUILD_UNITTEST=ON"
                "-DCMAKE_MODULE_PATH=${ME_CMAKE_SOURCE_DIR}" "-P" "${cmake_file}"
        WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
    )
endfunction()
