Re: [CMake] To include external libraries using Cmake

2017-01-13 Thread James Sutherland
I found this solution helpful: https://crascit.com/2015/07/25/cmake-gtest It is unfortunate that CMake doesn't have a proper way to accomplish this. --James On Thu, Jan 5, 2017 at 12:21 PM, Matthew Woehlke < matthew.woeh...@kitware.com> wrote: > On 2017-01-05 05:10, aishwarya selvaraj wrote: >

Re: [CMake] ExternalProject_Add

2017-01-13 Thread James Sutherland
I found this solution helpful: https://crascit.com/2015/07/25/cmake-gtest It is unfortunate that CMake doesn't have a proper way to accomplish this. --James On Sun, Jan 8, 2017 at 10:07 PM, Hendrik Sattler wrote: > One possibility is the often mentioned superbuild, another is not using > find

[CMake] [ANNOUNCE] CMake 3.7.2 available for download

2017-01-13 Thread Robert Maynard
We are pleased to announce that CMake 3.7.2 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! - Changes in 3.7.2 since 3.7.1: Aleix P

Re: [CMake] Linker flags on all except a couple of programs

2017-01-13 Thread Matthew Woehlke
On 2017-01-12 00:49, Paul Smith wrote: > I have a CMake-based build that creates about 170 binaries (most of them > are individual unit test programs). > > I have set the CMAKE_EXE_LINKER_FLAGS to a set of flags I wanted on all > the binaries. > > Now it turns out that I need to remove, or not se

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 already tried with CUDA

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 l

Re: [CMake] [EXTERNAL]: Linker flags on all except a couple of programs

2017-01-13 Thread Parag Chandra
Have you tried the various string commands? https://cmake.org/cmake/help/v3.7/command/string.html I’ve done something similar to replace default linker flags with ones of my own choosing. I bet you could use something like string(REGEX REPLACE …) to essentially remove the unwanted linker flags