[ITK] Building ITK 4.7.1 with Shared Libs and deployment
Bradley Lowekamp
blowekamp at mail.nih.gov
Mon Feb 23 18:08:16 EST 2015
Michael,
I don't recall the details but I do remember on of these CMake SHARED library flags as not being set on windows, to only enable the shared libraries for those that export the interface. So your initial report doesn't sounds like it's entirely wrong to me, I just don't know where it is set this way.
If your goal is to determine if a library is shared have you looked at the information in ITKTargets.cmake? This should contain all the valuable CMake information about the libraries.
Brad
On Feb 23, 2015, at 5:40 PM, Michael Jackson <mike.jackson at bluequartz.net> wrote:
>
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
More information about the Community
mailing list