blob: 30d6fef9c27f44f2b58c0366318384f82df22ce7 [file] [log] [blame]
set(LLVM_NO_RTTI 1)
add_lldb_executable(lldb
Driver.cpp
Platform.cpp
)
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
add_definitions( -DIMPORT_LIBLLDB )
endif()
target_link_libraries(lldb liblldb)
# TODO: why isn't this done by add_lldb_executable?
#target_link_libraries(lldb ${LLDB_USED_LIBS})
#llvm_config(lldb ${LLVM_LINK_COMPONENTS})
set_target_properties(lldb PROPERTIES VERSION ${LLDB_VERSION})
install(TARGETS lldb
RUNTIME DESTINATION bin)