Hello,
I use GDCM libaries in one project. Unfurtunally, i couldn't find a
findGDCM module and i'm not experienced enough to write one. I have seen
that GDCM is used in ITK, so there must be a module like this. GDCM is
using cmake too, so inclusion should be easy. But i have problems to
link the correkt library version depending on the configuration type.
IF(WIN32)
INCLUDE_DIRECTORIES(C:/Programme/GDCM\ 2.0/include/gdcm-2.0)
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
LINK_DIRECTORIES("C:/Program Files/GDCM/bin/Debug")
ELSE(CMAKE_BUILD_TYPE MATCHES "Debug")
LINK_DIRECTORIES("C:/Program Files/GDCM/bin/Release")
ENDIF(CMAKE_BUILD_TYPE MATCHES "Debug")
SET(GDCM_LIBRARIES gdcmcharls.lib gdcmCommon.lib gdcmDICT.lib
gdcmDSED.lib gdcmexpat.lib gdcmgetopt.lib gdcmIOD.lib gdcmjpeg8.lib
gdcmjpeg12.lib gdcmjpeg16.lib gdcmMSFF.lib gdcmopenjpeg.lib gdcmzlib.lib)
ELSE(WIN32)
# Linux
INCLUDE_DIRECTORIES(/usr/include/gdcm-2.0)
SET(GDCM_LIBRARIES gdcmCommon gdcmDICT gdcmDSED gdcmIOD gdcmjpeg8
gdcmjpeg12 gdcmjpeg16 gdcmMSFF)
ENDIF(WIN32)
He always includes the Relase Directory. What is a solution for this issue?
Best reguards,
Michael Schildt
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake