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
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
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
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
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
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