Mercurial > hg > orthanc-wsi
changeset 302:f1441b74ba09
fixed handling of DefineSourceBasenameForTarget
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Dec 2023 21:42:36 +0100 |
parents | 2defc8008b33 |
children | 2e59c3fe8e32 |
files | Applications/CMakeLists.txt ViewerPlugin/CMakeLists.txt |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/CMakeLists.txt Wed Nov 22 07:49:49 2023 +0100 +++ b/Applications/CMakeLists.txt Wed Dec 20 21:42:36 2023 +0100 @@ -199,7 +199,9 @@ ${OPENJPEG_SOURCES} ) -DefineSourceBasenameForTarget(OrthancWSIFramework) +if (COMMAND DefineSourceBasenameForTarget) + DefineSourceBasenameForTarget(OrthancWSIFramework) +endif() ##################################################################### @@ -230,7 +232,9 @@ ${DICOMIZER_RESOURCES} ) -DefineSourceBasenameForTarget(OrthancWSIDicomizer) +if (COMMAND DefineSourceBasenameForTarget) + DefineSourceBasenameForTarget(OrthancWSIDicomizer) +endif() target_link_libraries(OrthancWSIDicomizer OrthancWSIFramework ${DCMTK_LIBRARIES}) @@ -268,7 +272,9 @@ ${DICOM_TO_TIFF_RESOURCES} ) -DefineSourceBasenameForTarget(OrthancWSIDicomToTiff) +if (COMMAND DefineSourceBasenameForTarget) + DefineSourceBasenameForTarget(OrthancWSIDicomToTiff) +endif() target_link_libraries(OrthancWSIDicomToTiff OrthancWSIFramework ${DCMTK_LIBRARIES})
--- a/ViewerPlugin/CMakeLists.txt Wed Nov 22 07:49:49 2023 +0100 +++ b/ViewerPlugin/CMakeLists.txt Wed Dec 20 21:42:36 2023 +0100 @@ -240,7 +240,9 @@ ${OPENJPEG_SOURCES} ) -DefineSourceBasenameForTarget(OrthancWSI) +if (COMMAND DefineSourceBasenameForTarget) + DefineSourceBasenameForTarget(OrthancWSI) +endif() message("Setting the version of the library to ${ORTHANC_WSI_VERSION}") set_target_properties(OrthancWSI PROPERTIES