Add sanitizer support for jpip executables

This commit is contained in:
Karol Babioch 2018-02-28 17:40:12 +01:00
parent 9dbe549c5d
commit 4acb261b93
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ include_directories(
# Tool to embed metadata into JP2 file # Tool to embed metadata into JP2 file
add_executable(opj_jpip_addxml opj_jpip_addxml.c) add_executable(opj_jpip_addxml opj_jpip_addxml.c)
add_sanitizers(opj_jpip_addxml)
# Install exe # Install exe
install(TARGETS opj_jpip_addxml install(TARGETS opj_jpip_addxml
EXPORT OpenJPEGTargets EXPORT OpenJPEGTargets
@ -23,6 +24,7 @@ if(BUILD_JPIP_SERVER)
# Build executable # Build executable
add_executable(opj_server ${OPJ_SERVER_SRCS}) add_executable(opj_server ${OPJ_SERVER_SRCS})
add_sanitizers(opj_server)
target_link_libraries(opj_server ${FCGI_LIBRARIES} openjpip_server) target_link_libraries(opj_server ${FCGI_LIBRARIES} openjpip_server)
set_property( set_property(
TARGET opj_server TARGET opj_server
@ -49,6 +51,7 @@ set(EXES
) )
foreach(exe ${EXES}) foreach(exe ${EXES})
add_executable(${exe} ${exe}.c) add_executable(${exe} ${exe}.c)
add_sanitizers(${exe})
target_link_libraries(${exe} openjpip) target_link_libraries(${exe} openjpip)
install(TARGETS ${exe} install(TARGETS ${exe}
EXPORT OpenJPEGTargets EXPORT OpenJPEGTargets