2010-09-14 07:54:41 +08:00
|
|
|
set( LLVM_LINK_COMPONENTS
|
2011-02-20 07:03:58 +08:00
|
|
|
support
|
2010-09-14 07:54:41 +08:00
|
|
|
mc
|
2009-08-28 23:28:48 +08:00
|
|
|
)
|
2009-10-06 06:29:42 +08:00
|
|
|
|
2010-09-14 07:54:41 +08:00
|
|
|
add_clang_executable(c-index-test
|
|
|
|
c-index-test.c
|
2010-09-11 05:13:16 +08:00
|
|
|
)
|
|
|
|
|
2012-06-21 09:30:21 +08:00
|
|
|
target_link_libraries(c-index-test
|
|
|
|
libclang
|
|
|
|
)
|
|
|
|
|
2009-10-06 06:29:42 +08:00
|
|
|
set_target_properties(c-index-test
|
|
|
|
PROPERTIES
|
|
|
|
LINKER_LANGUAGE CXX)
|
2012-08-08 01:54:38 +08:00
|
|
|
|
|
|
|
# If libxml2 is available, make it available for c-index-test.
|
|
|
|
if (LIBXML2_FOUND)
|
|
|
|
add_definitions(${LIBXML2_DEFINITIONS} "-DCLANG_HAVE_LIBXML")
|
|
|
|
include_directories(${LIBXML2_INCLUDE_DIR})
|
|
|
|
target_link_libraries(c-index-test ${LIBXML2_LIBRARIES})
|
|
|
|
endif()
|