[ITK-users] Access to ITK_LIBRARY_DIRS during CMake

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Mon Sep 19 10:39:04 EDT 2016


Hello,

I would look at ITKConfig.cmake and ITKTargets.cmake.

ITK now uses the libraries as “IMPORTED” targets with properties to specify the full path to the libraries. 

After that there are a variety of “rpath” complication at link and run time to ensure the correct library is loaded. I have to spend a while reading the documentation to understand the issues again.

These are considered the “new” and “better” way of doing things. I would look into why you need “ITK_LIBRARY_DIRS” for you project, and then see if there is a newer and better way to now do that with imported targets or “rpaths”.

HTH,
Brad



> On Sep 19, 2016, at 10:26 AM, Michael Jackson <mike.jackson at bluequartz.net> wrote:
> 
> I have a self built ITK 4.9.1 on OS X 10.10.5 with Xcode 7.2. I am trying to get the "ITK_LIBRARY_DIRS" but that variable seems to be empty when I run CMake. This is after I do the "FindPackage(ITK...)" cmake code. Is that variable supposed to be empty? Is there a better way to get the Library directory? I need it for one of my scripts that packages our OS X application.
> 
> Thanks
> 
> -- 
> Michael A. Jackson
> BlueQuartz Software, LLC
> [e]: mike.jackson at bluequartz.net
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users



More information about the Insight-users mailing list