Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CMake-ified version of DCMTK

branch: patched-3

Add generation of DCMTKConfig.cmake

For both install and build tree, the files:

  DCMTKConfig.cmake
  DCMTKConfigVersion.cmake
  DCMTKTargets.cmake

will be configured into:

   <prefix>/share/dcmtk

It means the following option have to be passed when build a project
depending on python:

   -DDCMTK_DIR:PATH=/path/to/<prefix>/lib/cmake/dcmtk

Since CMake 2.6,  a new signature for find_package is supported:
   find_package(<package_name> NO_MODULE)

NO_MODULE tells CMake to skip loading the Find<package>.cmake to locate a
package and use it. With the current implemtantion of DCMTKConfig.cmake,
CMake will be able to depends on DCMTK without relying on FindDCMTK.cmake.

Since CMake 2.8.8, there is convenient module named "CMakePackageConfigHelpers"
that provided the helper macros "configure_package_config_file" and
"write_basic_package_version_file" allowing to easily configure
relocatable packages.
See http://www.cmake.org/cmake/help/v2.8.8/cmake.html#module:CMakePackageConfigHelpers

To avoid upgrading the minimum requirement version of CMake, the
generation of 'DCMTKConfig.cmake' is done only if possible. To display
message with the macro are not available, a convenient
macro named "check_cmake_command_exists" has also been added.

To allow find_package to work with both a build and install tree, the macro
"configure_package_config_file" is called twice with different value for
the variables:

  DCMTK_CMKDIR_CONFIG
  DCMTK_config_INCLUDE_DIR_CONFIG
  DCMTK_<module>_INCLUDE_DIR_CONFIG

Then, within DCMTKConfig.cmake, the following variables are set:
  DCMTK_MODULES
  DCMTK_LIBRARIES
  DCMTK_TARGETS
  DCMTK_INCLUDE_DIRS
  DCMTK_INCLUDE_DIR # Deprecated

Finally, the DCMTKConfigVersion file is automatically generated with the
help of "write_basic_package_version_file" and is identical for both the
build and the install tree.
latest commit f461865d17
Jean-Christophe Fillion-Robin jcfr authored March 28, 2013
Octocat-spinner-32 CMake Add generation of DCMTKConfig.cmake March 28, 2013
Octocat-spinner-32 config Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmdata Removed comment begin from within comment. January 15, 2013
Octocat-spinner-32 dcmimage Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmimgle Fixed wrong calculation of returned number of bytes in createAWTBitma… January 24, 2013
Octocat-spinner-32 dcmjpeg Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmjpls Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmnet Added checking for incoming C-CANCEL message to DcmSCP. Cleaned up fo… January 24, 2013
Octocat-spinner-32 dcmpstat Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmqrdb Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmrt Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmsign Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmsr Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmtls Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 dcmwlm Update oflog to log4cplus 1.1.0 January 15, 2013
Octocat-spinner-32 docs Replaced non-ASCII character by its ASCII equivalent. September 06, 2012
Octocat-spinner-32 doxygen Ported the "man2text" target to CMake. November 20, 2012
Octocat-spinner-32 oflog Added missing include for OFendl. January 22, 2013
Octocat-spinner-32 ofstd Fix memory leaks identified by Valgrind. March 28, 2013
Octocat-spinner-32 .gitignore Added directory created by autoconf. September 20, 2012
Octocat-spinner-32 ANNOUNCE.361 Created new preliminary annnouncement file for version 3.6.1. February 01, 2011
Octocat-spinner-32 CHANGES.361 Added checking for incoming C-CANCEL message to DcmSCP. Cleaned up fo… January 24, 2013
Octocat-spinner-32 CMakeLists.txt Add generation of DCMTKConfig.cmake March 28, 2013
Octocat-spinner-32 COPYRIGHT Moved module for "DICOM in Radiation Therapy" (DCMRT) to the public D… June 18, 2012
Octocat-spinner-32 FAQ Added link to online FAQ. November 10, 2004
Octocat-spinner-32 HISTORY Slightly revised contents of the HISTORY file. December 16, 2010
Octocat-spinner-32 INSTALL Added new CMake option BUILD_APPS. October 08, 2012
Octocat-spinner-32 Makefile Added a "help" target to the main Makefile. September 28, 2012
Octocat-spinner-32 README Moved module for "DICOM in Radiation Therapy" (DCMRT) to the public D… June 18, 2012
Octocat-spinner-32 VERSION Updated version number to 3.6.1 (the new development snapshot). February 01, 2011
Octocat-spinner-32 configure Improved error message for missing configure scripts. October 26, 2012
README
DCMTK

This DICOM ToolKit (DCMTK) package consists of source code, documentation
and installation instructions for a set of software libraries and
applications implementing part of the DICOM/MEDICOM Standard.

DCMTK contains the following sub-packages, each in its own sub-directory:

    config   - configuration utilities for DCMTK
    dcmdata  - a data encoding/decoding library and utility apps
    dcmimage - adds support for color images to dcmimgle
    dcmimgle - an image processing library and utility apps
    dcmjpeg  - a compression/decompression library and utility apps
    dcmjpls  - a compression/decompression library and utility apps
    dcmnet   - a networking library and utility apps
    dcmpstat - a presentation state library and utility apps
    dcmqrdb  - an image database server
    dcmrt    - a radiation therapy library and utility apps
    dcmsign  - a digital signature library and utility apps
    dcmsr    - a structured report library and utility apps
    dcmtls   - security extensions for the network library
    dcmwlm   - a modality worklist database server
    oflog    - a logging library based on log4cplus
    ofstd    - a library of general purpose classes

Each sub-directory (except config) contains further sub-directories for
application source code (apps), library source code (libsrc), library
include files (include), configuration data (etc), documentation (docs),
sample and support data (data) as well as test programs (tests).

To build and install the DCMTK package see the INSTALL file.  For copyright
information see the COPYRIGHT file.  For information about the history of
this software see the HISTORY file.  For answers to frequently asked
questions please consult the FAQ:

        http://forum.dcmtk.org/faq/

There is also a Wiki system where additional information can be found:

        http://support.dcmtk.org/wiki/

If you find bugs or other problems with this software, we would appreciate
hearing about them.  Please send electronic mail to:

        dicom-bugs/at/offis/dot/de

Please try to describe the problem in detail and if possible give a
suggested fix.  For general questions on how to compile, install or use
the toolkit we recommend the public discussion forum at:

        http://forum.dcmtk.org/
Something went wrong with that request. Please try again.