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] To include external libraries using Cmake

2017-01-05 Thread Matthew Woehlke
On 2017-01-05 05:10, aishwarya selvaraj wrote: > Thanks for feedback : > >> IF (${ARMADILLO} STREQUAL “ARMADILLO-NOTFOUND”) >> # do what you want >> ENDIF () > ​ > I tried this way of writing : > > IF (${ARMADILLO} STREQUAL "ARMADILLO-NOTFOUND") > include(ExternalProject) > ExternalProj

[CMake] To include external libraries using Cmake

2017-01-05 Thread aishwarya selvaraj
Thanks for feedback : > IF (${ARMADILLO} STREQUAL “ARMADILLO-NOTFOUND”) > # do what you want > ENDIF () ​ I tried this way of writing : IF (${ARMADILLO} STREQUAL "ARMADILLO-NOTFOUND") include(ExternalProject) ExternalProject_Add(armadillo URL https://github.com/lsolanka/armadillo/ar

[CMake] To include external libraries using Cmake

2017-01-04 Thread aishwarya selvaraj
Hi , I'm using Cmake to create binary files as it can give a way to build my application that will successfully compile on different platforms . I use : Linux -14.04 Cmake - 2.8.12 My .cpp code is called TSM_CODE_V3.cpp.It depends on two external library files .1) arma