Add sanitizers to executable targets

This commit is contained in:
Jack Andersen 2018-05-06 13:09:17 -10:00
parent b798f14523
commit 95d9283800
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ add_executable(hecl-gui WIN32 MACOSX_BUNDLE
DownloadManager.hpp DownloadManager.cpp
ExtractZip.hpp ExtractZip.cpp ${QUAZIP_SRCS}
Common.hpp Common.cpp ${PLAT_SRCS} main.cpp)
if(COMMAND add_sanitizers)
add_sanitizers(hecl-gui)
endif()
set_target_properties(hecl-gui PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist")