All these variables only affect the API tests. Therefore they belong in test/API/CMakeLists.txt rather than the top-level CMakeLists.txt.
LLDB API Tests
This directory only exists for the lit test driver. The actual tests live in
the tests directory in top level LLDB directory.