CMAKE Options for Building Select Set of Modules

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
samee
Posts: 17
Joined: Thu, 2023-03-30, 15:27

CMAKE Options for Building Select Set of Modules

#1 Post by samee »

Hi there,

My application only uses a select set of DCMTK modules: ofstd, oflog, dcmdata, dcmimgle, dcmimage, dcmjpeg, dcmjpls.

Is there a way to just build those (and preferably without the tests) using CMake?

Thanks,
Samee

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: CMAKE Options for Building Select Set of Modules

#2 Post by Michael Onken »

Hi,

you can set in CMake the variable DCMTK_MODULES. Per default this is set to all modules:

Code: Select all

ofstd;oflog;oficonv;dcmdata;dcmimgle;dcmimage;dcmjpeg;dcmjpls;dcmtls;dcmnet;dcmsr;dcmsign;dcmwlm;dcmqrdb;dcmpstat;dcmrt;dcmiod;dcmfg;dcmseg;dcmtract;dcmpmap;dcmect
Just remove those that you don't need. Note that some libraries depend on others (e.g. all need ofstd), but usually removing from the back of the list until you reach the library you want to keep works well.

Best regards,
Michael

samee
Posts: 17
Joined: Thu, 2023-03-30, 15:27

Re: CMAKE Options for Building Select Set of Modules

#3 Post by samee »

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest