Compile dcmsr folder with CMake for VisualStudio 2015

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
oguhantunes
Posts: 15
Joined: Mon, 2015-07-20, 14:25

Compile dcmsr folder with CMake for VisualStudio 2015

#1 Post by oguhantunes »

Hi,
I am trying to compile DCMTK (most recent version - 3.6.1_20170228) with CMake 3.8.2.
More specifically I am trying to compile Dcmsr folder.
In CMake i am selecting option "Generator for Visual Studio 14 2015"
I get an error during the "Configure" process in CMake, saying the following :

CMake error at library libsrc/CMakeLists.txt:2 (DCMTK_ADD_LIBRARY)
Unknown CMake command "DCMTK_ADD_LIBRARY"

Can anyone help me?
Thanks

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Compile dcmsr folder with CMake for VisualStudio 2015

#2 Post by J. Riesmeier »

Did you select the CMakeLists.txt file within the "dcmsr" subfolder? This will not work, of course. You have to select the main CMakeLists.txt file in the "dcmtk" root directory. See INSTALL file for detailed instructions on how to compile the toolkit.

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Compile dcmsr folder with CMake for VisualStudio 2015

#3 Post by Jan Schlamelcher »

Adding to that: you can still compile dcmsr and its requirements only if you use the top level CMakeLists.txt, by right clicking on dcmsr -> build in Visuals Studio.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest