summaryrefslogtreecommitdiffstats
path: root/addon/doxyapp/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxyapp/CMakeLists.txt')
-rw-r--r--addon/doxyapp/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/addon/doxyapp/CMakeLists.txt b/addon/doxyapp/CMakeLists.txt
index af4590d..a6a776a 100644
--- a/addon/doxyapp/CMakeLists.txt
+++ b/addon/doxyapp/CMakeLists.txt
@@ -12,9 +12,14 @@ include_directories(
add_executable(doxyapp
doxyapp.cpp
)
+add_sanitizers(doxyapp)
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(doxyapp
@@ -31,6 +36,7 @@ ${CMAKE_THREAD_LIBS_INIT}
${SQLITE3_LIBRARIES}
${EXTRA_LIBS}
${CLANG_LIBS}
+${COVERAGE_LINKER_FLAGS}
)
install(TARGETS doxyapp DESTINATION bin)