Class view and header files in MSVC

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ChristofG
Posts: 2
Joined: Mon, 2007-03-12, 16:00
Location: Berlin, Germany
Contact:

Class view and header files in MSVC

#1 Post by ChristofG »

In order to include the DCMTK header files in Visual Studio Projects, I applied some minor changes to CMakeLists in the library source folders (e.g. dcmimage\libsrc\CMakeLists.txt). This also enables browsing the library classes in the "Class View" of MSVC.

Here is an example:

Code: Select all

# dcmimage\libsrc\CMakeLists.txt
#
# put header filenames in variable
FILE(GLOB headers ../include/dcmtk/${PROJECT_NAME}/*.h)

# create library from source files, including header files
ADD_LIBRARY(dcmimage diargimg dicmyimg dicoimg dicoopx dicopx dihsvimg dipalimg dipipng dipitiff diqtctab diqtfs diqthash diqthitl diqtpbox diquant diregist dirgbimg diybrimg diyf2img diyp2img
${headers})

...
The following files have to be adapted:

Code: Select all

dcmdata\libsrc\CMakeLists.txt
dcmimage\libsrc\CMakeLists.txt
dcmimgle\libsrc\CMakeLists.txt
dcmjpeg\libijg12\CMakeLists.txt
dcmjpeg\libijg16\CMakeLists.txt
dcmjpeg\libijg8\CMakeLists.txt
dcmjpeg\libsrc\CMakeLists.txt
dcmnet\libsrc\CMakeLists.txt
dcmpstat\libsrc\CMakeLists.txt
dcmqrdb\libsrc\CMakeLists.txt
dcmsign\libsrc\CMakeLists.txt
dcmsr\libsrc\CMakeLists.txt
dcmtls\libsrc\CMakeLists.txt
dcmwlm\libsrc\CMakeLists.txt
ofstd\libsrc\CMakeLists.txt
This worked for me on VS 2005 using CMake 2.4.6

Happy browsing!
---

Christof Gessner, Berlin, Germany
mxdx.de

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Thank you for your contribution. We've added another entry to our internal to-do-list :-)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest