Re: [CMake] What is the recommended ways to find libraries

2015-06-17 Thread Ondřej Čertík
Hi Oto, On Wed, Jun 17, 2015 at 11:18 AM, Oto Petřík oto.pet...@gmail.com wrote: Hi, Let's say my project wants to depend on a library PKG1 (here PKG1 can be MPFR, MPC, PTHREAD, GMP, BZIP2, you name it). Let's say the library is installed in $PKG1/include, $PKG1/lib, alternatively, all my

Re: [CMake] What is the recommended ways to find libraries

2015-06-17 Thread Oto Petřík
2015-06-17 21:00 GMT+02:00 Ondřej Čertík ondrej.cer...@gmail.com: and just use CMAKE_PREFIX_PATH instead of COMMON_DIR. I tried it in our code and it works. the idea is, that there is no need for PKG1_INCLUDE_DIRS, no PKG1_LIBRARIES and no PKG1_DIR just one path per dependency in

Re: [CMake] What is the recommended ways to find libraries

2015-06-17 Thread Oto Petřík
Hi, Let's say my project wants to depend on a library PKG1 (here PKG1 can be MPFR, MPC, PTHREAD, GMP, BZIP2, you name it). Let's say the library is installed in $PKG1/include, $PKG1/lib, alternatively, all my dependencies are installed in $HASHSTACK/include and $HASHSTACK/lib, or perhaps

[CMake] What is the recommended ways to find libraries

2015-06-11 Thread Ondřej Čertík
Hi, What is the official recommended way to make your project depend on other libraries using cmake? Let's say my project wants to depend on a library PKG1 (here PKG1 can be MPFR, MPC, PTHREAD, GMP, BZIP2, you name it). Let's say the library is installed in $PKG1/include, $PKG1/lib,