etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / tools / c-index-test / CMakeLists.txt
blobd0872fd2eff388963cb2f9f6097ba022e8603390
1 add_clang_executable(c-index-test
2   c-index-test.c
3   )
5 if(NOT MSVC)
6   set_property(
7     SOURCE c-index-test.c
8     PROPERTY COMPILE_FLAGS "-std=gnu89"
9     )
10 endif()
12 if (LLVM_BUILD_STATIC)
13   target_link_libraries(c-index-test
14     libclang_static
15   )
16 else()
17   target_link_libraries(c-index-test
18     libclang
19   )
20 endif()
22 set_target_properties(c-index-test
23   PROPERTIES
24   LINKER_LANGUAGE CXX)
26 # If libxml2 is available, make it available for c-index-test.
27 if (CLANG_HAVE_LIBXML)
28   include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
29   target_link_libraries(c-index-test ${LIBXML2_LIBRARIES})
30 endif()