llvm-project/lldb/unittests/tools/lldb-server/CMakeLists.txt

14 lines
577 B
CMake

function(add_lldb_test_executable test_name)
set(EXCLUDE_FROM_ALL ON)
add_llvm_executable(${test_name} NO_INSTALL_RPATH ${ARGN})
set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
set_output_directory(${test_name} BINARY_DIR ${outdir} LIBRARY_DIR ${outdir})
endfunction()
add_lldb_test_executable(thread_inferior inferior/thread_inferior.cpp)
add_definitions(-DLLDB_SERVER="$<TARGET_FILE:lldb-server>")
add_definitions(-DTHREAD_INFERIOR="${CMAKE_CURRENT_BINARY_DIR}/thread_inferior")
add_subdirectory(tests)
add_dependencies(LLDBServerTests thread_inferior)