2013-09-25 18:37:32 +08:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
add_lldb_executable(lldb
|
|
|
|
Driver.cpp
|
2013-10-15 23:46:40 +08:00
|
|
|
Platform.cpp
|
2013-09-25 18:37:32 +08:00
|
|
|
)
|
|
|
|
|
2014-03-03 23:50:36 +08:00
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
|
|
add_definitions( -DIMPORT_LIBLLDB )
|
|
|
|
endif()
|
|
|
|
|
2013-09-25 18:37:32 +08:00
|
|
|
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)
|