[CMake] GNUInstallDir for CMake export files

2014-09-30 Thread Nico Schlömer
Hi all, into which of the directories listed in [1] are the CMake export files (*Config.cmake, *Target.cmake,...) supposed to go? Cheers, Nico [1] http://www.cmake.org/cmake/help/v3.0/module/GNUInstallDirs.html -- Powered by www.kitware.com Please keep messages on-topic and check the CMake F

Re: [CMake] [ITK-dev] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Brad King
On 09/30/2014 11:13 AM, Bradley Lowekamp wrote: > Do you have a suggestion on how to conditionally include a > module if it's available? e.g. Use ITKDeprecated if ITK was > configure with it? find_package(ITK REQUIRED) set(MY_ITK_COMPONENTS ...) # list required mods here if(";${ITK_MODULES_ENAB

Re: [CMake] [ITK-dev] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Bradley Lowekamp
Brad, Do you have a suggestion on how to conditionally include a module if it's available? e.g. Use ITKDeprecated if ITK was configure with it? Thanks, Brad On Sep 30, 2014, at 10:48 AM, Brad King wrote: > On 09/30/2014 10:14 AM, Williams, Norman K wrote: >> find_package(VTK REQUIRED) >> find

Re: [CMake] [ITK-dev] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Brad King
On 09/30/2014 10:14 AM, Williams, Norman K wrote: > find_package(VTK REQUIRED) > find_package(ITK REQUIRED) > > You can’t real compile anything that needs VTK, because down in > the ITK deployment stuff, it calls find_package(VTK) like this: [snip] > Which blows away the larger list of include dir

Re: [CMake] [ITK-dev] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Bill Lorensen
Here is what I do for the WikiExamples remote module: find_package(VTK REQUIRED) include(${VTK_USE_FILE}) set(VTK_COMPONENTS ${VTK_LIBRARIES}) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) set(ITK_LIBRARIES ${ITK_LIBRARIES} ${VTK_COMPONENTS}) On Tue, Sep 30, 2014 at 10:14 AM, Wil

[CMake] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Williams, Norman K
This is a problem that has been cropping up in our projects that use ITK, VTK and SlicerExecutionModel. You won’t see it UNLESS you turn on the ITKVTK/ITKVtkGlue modules. The problem is this: if you find packages in this order: find_package(VTK REQUIRED) find_package(ITK REQUIRED) You can’t re

Re: [CMake] INTERFACE_LINK_LIBRARIES and CMP0028

2014-09-30 Thread Nils Gladitz
On 09/30/2014 09:58 AM, Mueller-Roemer, Johannes Sebastian wrote: The behavior of the transitive INTERFACE_LINK_LIBRARIES combined with CMP0028 seems very broken to me. For libraries using a module (such as ZLIB), I can simply do a find_package in one of my libraries’ CMakeLists.txt and link to i

[CMake] INTERFACE_LINK_LIBRARIES and CMP0028

2014-09-30 Thread Mueller-Roemer, Johannes Sebastian
The behavior of the transitive INTERFACE_LINK_LIBRARIES combined with CMP0028 seems very broken to me. For libraries using a module (such as ZLIB), I can simply do a find_package in one of my libraries' CMakeLists.txt and link to it in a different CMakeLists.txt without issues. If I do the same

Re: [CMake] Issues setting CMAKE_VS_PLATFORM_TOOLSET

2014-09-30 Thread J Decker
On Tue, Sep 30, 2014 at 12:15 AM, Nils Gladitz wrote: > On 09/30/2014 09:02 AM, J Decker wrote: > >> I was recently trying to package some apps I was building, but ran into >> an issue that they weren't compatible on XP. ... I was setting >> CMAKE_VS_PLATFORM_TOOLSET on the base SDK but that was

Re: [CMake] Issues setting CMAKE_VS_PLATFORM_TOOLSET

2014-09-30 Thread Nils Gladitz
On 09/30/2014 09:02 AM, J Decker wrote: I was recently trying to package some apps I was building, but ran into an issue that they weren't compatible on XP. ... I was setting CMAKE_VS_PLATFORM_TOOLSET on the base SDK but that wasn't being relayed to subsequent projects... so I fixed that, and th

[CMake] Issues setting CMAKE_VS_PLATFORM_TOOLSET

2014-09-30 Thread J Decker
I was recently trying to package some apps I was building, but ran into an issue that they weren't compatible on XP. ... I was setting CMAKE_VS_PLATFORM_TOOLSET on the base SDK but that wasn't being relayed to subsequent projects... so I fixed that, and the toolset still isn't being set. This is