xref: /llvm-project/lldb/unittests/ScriptInterpreter/Python/CMakeLists.txt (revision aa2c2c8e3c3fe74f2b374b3fdc703ca7b05f80a0)
1if (APPLE AND LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)
2  # Work around an issue with the Python headers, which have a modular include
3  # inside an extern "C" block.
4  remove_module_flags()
5endif()
6
7add_lldb_unittest(ScriptInterpreterPythonTests
8  PythonDataObjectsTests.cpp
9  PythonTestSuite.cpp
10
11  LINK_LIBS
12    lldbHost
13    lldbPluginScriptInterpreterPython
14    LLVMTestingSupport
15  LINK_COMPONENTS
16    Support
17  )
18
19if(Python3_RPATH)
20  set_property(TARGET ScriptInterpreterPythonTests APPEND PROPERTY BUILD_RPATH "${Python3_RPATH}")
21endif()
22