Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread CHEVRIER, Marc
This approach is not possible for Java because the command add_jar is implemented using commands add_custom_command and add_custom_target. And command target_sources implies that the target was created by one the commands add_library or add_executable. From: CMake on behalf of "J. Caleb Wherr

Re: [CMake] How to get RPATH option (-Wl, -rpath, /path/to/local/lib) ?

2018-02-02 Thread Franck Houssen
The wiki do not cover how to handle rpath when you need to provide a mylib.pc or mylib.cmake file in the install directory of your library: this is why I asked ! If you need to provide a pc file like this: >> more mylib.pc prefix=${CMAKE_INSTALL_PREFIX} exec_prefix=${prefix} includedir=${pr

Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread J. Caleb Wherry
Yes, I understand that. The error message is pretty clear. My main question is really why is that the case? In VS, there is no restriction to adding files to a utility project. So why does CMake have this restriction? I assume it is because it is generator specific and there isn’t a clean way to

Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread Eric Noulard
There is some history on that: https://gitlab.kitware.com/cmake/cmake/issues/7835 linked to older https://itk.org/Bug/view.php?id=7835 May be this is a plain feature request that should be properly written based on history and current usage. Typically I think that anyone would want to add any fi

Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread J. Caleb Wherry
Agreed. If I don't here anything else about this, I'll write up a feature request. On Fri, Feb 2, 2018 at 9:50 AM, Eric Noulard wrote: > There is some history on that: > > https://gitlab.kitware.com/cmake/cmake/issues/7835 linked to older > https://itk.org/Bug/view.php?id=7835 > > May be this i

Re: [CMake] Referencing nuget packages in csharp csproj files

2018-02-02 Thread Jacob Barrett
Joern, We too have been trying to find better integration between CMake and NuGet. What we have done is taken advantage of the packages.config file and the nuget.exe command line too. We have a custom target that executes `nuget restore` against the generated solution file. This by default places