Home | History | Annotate | Download | only in c-index-test
      1 add_clang_executable(c-index-test
      2   c-index-test.c
      3   )
      4 
      5 if(NOT MSVC)
      6   set_property(
      7     SOURCE c-index-test.c
      8     PROPERTY COMPILE_FLAGS "-std=gnu89"
      9     )
     10 endif()
     11 
     12 target_link_libraries(c-index-test
     13   libclang
     14   )
     15 
     16 set_target_properties(c-index-test
     17   PROPERTIES
     18   LINKER_LANGUAGE CXX)
     19 
     20 # If libxml2 is available, make it available for c-index-test.
     21 if (CLANG_HAVE_LIBXML)
     22   include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
     23   target_link_libraries(c-index-test ${LIBXML2_LIBRARIES})
     24 endif()
     25