[CMake] How can I automatically optionally build a submodule?

2019-03-11 Thread Steve Keller
How can I build a module in a subdirectory automatically if a required package is available, but not fail if it's not. Say I have a top-level CMakeLists.txt with add_subdirectory(foo) add_subdirectory(bar) and in directory foo I have in CMakeLists.txt find_package(yadda, REQUIRED) I

Re: [CMake] further configuration of generated projects outside of CMake?

2019-03-11 Thread Zan Lynx
On March 11, 2019 6:03:24 PM MDT, hex wrote: >hi everyone, > >There are many generators supported in CMake. A CMake build system >allows me to generate the preferred build environment for everyone, >visual studio, eclipse, ninja you name it. > >The problem I see with this is that projects are ge

[CMake] further configuration of generated projects outside of CMake?

2019-03-11 Thread hex
hi everyone, There are many generators supported in CMake. A CMake build system allows me to generate the preferred build environment for everyone, visual studio, eclipse, ninja you name it. The problem I see with this is that projects are generated output files, and even if that gives every

Re: [CMake] cpack_add_component

2019-03-11 Thread Kyle Edwards via CMake
On Mon, 2019-03-11 at 17:59 +0100, Micha Renner wrote: > In CPack I can add a component with cpack_add_component and describe > the component with the additional arguments of the macro. > I can also describe the component if I use the varibales of type > CPACK_COMPONENT__XXX (e.g. > CPACK_COMPONENT

[CMake] cpack_add_component

2019-03-11 Thread Micha Renner
In CPack I can add a component with cpack_add_component and describe the component with the additional arguments of the macro. I can also describe the component if I use the varibales of type CPACK_COMPONENT__XXX (e.g. CPACK_COMPONENT__HIDDEN). So which one is the right way? Or doesn't matter which

Re: [CMake] Invalid escape sequence in macro

2019-03-11 Thread Stephan.Szabo
I would expect that you're running into a consequence of: "In a function, ARGN, ARGC, ARGV and ARGV0, ARGV1, ... are true variables in the usual CMake sense. In a macro, they are not, they are string replacements much like the C preprocessor would do with a macro." So I would expect the backslas

[CMake] Invalid escape sequence in macro

2019-03-11 Thread Ramold, Felix
Hi, today i ran into an error with escape characters in macros. Is this a known issue? Is this by design? How can I workaround? Code: function(f STRING) message(STATUS ${STRING}) endfunction() macro(m STRING) message(STATUS ${STRING}) endmacro() set(CONTENT "bla bla \/\/") message(STATUS

[CMake] Why do we need NVIDIA Nsight Tegrato create Visual Studio Android Projects?

2019-03-11 Thread Daniel Wynne
Hi All! Short question: why do we need NVIDIA Nsight Tegra to setup a Visual Studio Android project? Despite of it being a helpful tool, the necessity for it to create the project file is unclear to me. Could you please enlighten me? Kind Regards Daniel -- Powered by www.kitware.com Plea