Add sanitizer support for jp2 executables

This commit is contained in:
Karol Babioch 2018-02-28 17:38:22 +01:00
parent 735eba9474
commit c08cc839e9
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ endif()
# Loop over all executables: # Loop over all executables:
foreach(exe opj_decompress opj_compress opj_dump) foreach(exe opj_decompress opj_compress opj_dump)
add_executable(${exe} ${exe}.c ${common_SRCS}) add_executable(${exe} ${exe}.c ${common_SRCS})
add_sanitizers(${exe})
if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12") if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12")
target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS}) target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS})
endif() endif()