[CMake] output of add_custom_command as target in Makefile

2015-06-11 Thread Dave Yost
In this example, how do I get make foo.cc to work? 0 Thu 16:56:19 yost DaveBook ~/p/c++/cmake/custom-command-target 369 Z% bundle CMakeLists.txt genFoo #!/usr/bin/env unbundle # See http://yost.com/computers/bundle/ CMakeLists.txt cmake_minimum_required(VERSION 3.3.0) project(custom-c

[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, alternatively

Re: [CMake] How does :: actually works?

2015-06-11 Thread Klaim - Joël Lamotte
On 11 June 2015 at 15:22, Johannes Zarl-Zierl wrote: > Hi, > > > I tried several times now to find documentation about how to define > > and use target names which seem to have namespaces, like Qt ones. > > > > For example: add_executable( MyProject::some_target ... ) > > AFAIK target namespaces

[CMake] [ANNOUNCE] CMake 3.3.0-rc2 is now ready!

2015-06-11 Thread Robert Maynard
I am proud to announce the second CMake 3.3 release candidate. Sources and binaries are available at: http://www.cmake.org/download/ Documentation is available at: http://www.cmake.org/cmake/help/v3.3 Release notes appear below and are also published at http://www.cmake.org/cmake/help/v3.3

Re: [CMake] How does :: actually works?

2015-06-11 Thread Johannes Zarl-Zierl
Hi, > I tried several times now to find documentation about how to define > and use target names which seem to have namespaces, like Qt ones. > > For example: add_executable( MyProject::some_target ... ) AFAIK target namespaces are intended for imported targets, not "regular" targets: "A NAMES