On 3 September 2015 at 19:48, Michael Jackson
wrote:
> I have compiled the Protocol Buffer library on OS X and I am using the
> following CMake code to try and find the compiled libraries:
>
> find_package(Protobuf REQUIRED)
>
>
> but when configuring I get the usual
>
> CMake Error: The followin
Hello,
On 03/09/15 23:15, Robert Dailey wrote:
> How recent is this documentation?
> http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules
>
> It seems rather old. What is the modern way of doing this?
The cmake-developer help page has a section about modules:
http://www.cma
On 05/09/15 08:22, Alex Turbov wrote:
> Hi,
>
> in my project I have `add_executable()`. after that, in a current binary
> dir I need to render a `*.cmake` script (via `configure_file()`) to be
> running from `add_test()` (as `cmake -P`) which should start just the
> compiled executable via `execu
Hi Alex.
I don't know if there is a better solution, but the following workaround
should work for you:
In your normal CMakeList, do `file(GENERATE OUTPUT location.cmake CONTENT
"set(TheLocation \"$\")\n")`.
Then, in the configured *.cmake script, do `include(location.cmake)`. The
location of the