Re: [CMake] Problems building a MODULE library (OpenFX plugin) with correct cuda object linking

2017-01-13 Thread Robert Maynard
Hi, Here is a example that uses CUDA_WRAP_SRCS and separable compilation. I quickly ported the code from a project, so it most likely has some minor issues. https://git.io/vMga3 On Thu, Jan 12, 2017 at 5:04 PM, Ingmar Rieger wrote: > Hey, > > thank you for your answer. I

Re: [CMake] Problems building a MODULE library (OpenFX plugin) with correct cuda object linking

2017-01-13 Thread Ingmar Rieger
Hey, thank you for your answer. I already tried with CUDA_WRAP_SRCS but didn't really get how to use it and the https://cmake.org/cmake/help/v3.7/module/FindCUDA.html lacks of any samples really showing what is going on. How can I use CUDA_WRAP_SRCS to create the OBJECT and then add it to a

Re: [CMake] Problems building a MODULE library (OpenFX plugin) with correct cuda object linking

2017-01-11 Thread Robert Maynard
I believe you will want to use the low level command CUDA_WRAP_SRCS with the MODULE option. Since CUDA_WRAP_SRCS is a low level command, If you need separable compilation you will need to manually invoke those steps too ( read CUDA_SEPARABLE_COMPILATION documentation on what methods you will need