diff options
| author | Antonin Descampe <antonin@gmail.com> | 2014-10-15 10:24:49 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2014-10-15 10:24:49 +0000 |
| commit | 984351f86f825b2679af5dc70a2c5d0e07ff3059 (patch) | |
| tree | c3c41ef25aa65f391458794685d4485fe3b7f654 /src/bin/jp2 | |
| parent | f8796711e8d8e004d8b73929f0ff87c83abf0c76 (diff) | |
[trunk] Add option to call dsymutil on built binaries (fixes issue 409)
Diffstat (limited to 'src/bin/jp2')
| -rw-r--r-- | src/bin/jp2/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt index 1c2ef39c..a353a8f8 100644 --- a/src/bin/jp2/CMakeLists.txt +++ b/src/bin/jp2/CMakeLists.txt @@ -50,6 +50,13 @@ foreach(exe opj_decompress opj_compress opj_dump) EXPORT OpenJPEGTargets DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications ) + if(OPJ_USE_DSYMUTIL) + GET_TARGET_PROPERTY(EXE_LOCATION ${exe} LOCATION) + add_custom_command(TARGET ${exe} POST_BUILD + COMMAND "dsymutil" "${EXE_LOCATION}" + COMMENT "dsymutil ${EXE_LOCATION}" + DEPENDS ${exe}) + endif() endforeach() if(BUILD_DOC) |
