aboutsummaryrefslogtreecommitdiff
path: root/unittests/tools/lldb-server/CMakeLists.txt
blob: b7113c3d260c51ecdaf88f46db3e50e70ab8b2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)