summaryrefslogtreecommitdiffstats
path: root/addon/doxyparse/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxyparse/CMakeLists.txt')
-rw-r--r--addon/doxyparse/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt
index d2a8f63..8df99ab 100644
--- a/addon/doxyparse/CMakeLists.txt
+++ b/addon/doxyparse/CMakeLists.txt
@@ -12,9 +12,14 @@ include_directories(
add_executable(doxyparse
doxyparse.cpp
)
+add_sanitizers(doxyparse)
if (use_libclang)
- set(CLANG_LIBS libclang clangTooling ${llvm_libs})
+ if (static_libclang)
+ set(CLANG_LIBS libclang clangTooling ${llvm_libs})
+ else()
+ set(CLANG_LIBS libclang clang-cpp ${llvm_libs})
+ endif()
endif()
target_link_libraries(doxyparse
@@ -31,6 +36,7 @@ ${CMAKE_THREAD_LIBS_INIT}
${SQLITE3_LIBRARIES}
${EXTRA_LIBS}
${CLANG_LIBS}
+${COVERAGE_LINKER_FLAGS}
)
install(TARGETS doxyparse DESTINATION bin)