[ITK] Building ITK 4.7.1 with Shared Libs and deployment

Michael Jackson mike.jackson at bluequartz.net
Mon Feb 23 17:40:13 EST 2015


On Feb 23, 2015, at 4:51 PM, Michael Jackson <mike.jackson at bluequartz.net> wrote:

> 
> On Feb 23, 2015, at 2:50 PM, Matt McCormick <matt.mccormick at kitware.com> wrote:
> 
>> Hi Mike,
>> 
>> 
>>> I am trying to build ITK 4.7.1 with Visual Studio 2013 on Windows 7 x64 as 64 bit binaries. I have set the BUILD_SHARED_LIBS=ON cmake variable and built. The issue is that when I look that the generated ITKConfig.cmake file I see the value (ITK_BUILD_SHARED "OFF"). This causes problems as I am trying to create a deployable windows application and I need to figure out if my project should be including the ITK dll files.
>> 
>> This is strange.  ITK_BUILD_SHARED should correspond to BUILD_SHARED_LIBS.
> 
> Strange I agree, but it does not correspond. So any idea what to do? Besides a clean build? It took my a few hours of fighting with ITK to convince ITK to use my HDF5 libraries.

Also searched the CMakeCache.txt file and ITK_BUILD_SHARED does not appear anywhere.


> 
> 
>> 
>>> I am also looking for a CMake variable in the ITKConfig (or its children files) that would list out the particular build directory? I used to depend on a CMake GLoB statement to find all the DLL files but that seems to not be working any more.
>> 
>> The ITK Module API [1] may be useful.
>> 
>> HTH,
>> Matt
>> 
>> [1] http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleAPI.cmake;h=304d864e957a28bc28df1bb49f7d06ebbd641fdd;hb=HEAD
> 
> 
> Thanks
> Mike Jackson


More information about the Community mailing list