Re: [CMake] Multiple "projects" one directory

2018-04-27 Thread J Decker
You can solve this by treating those local projects as external projects; then they can be built with independant flags include( ExternalProject ) https://github.com/d3x0r/SACK/blob/master/CMakeLists.txt#L1769 ExternalProject_Add( ppc_portable SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/makefiles

[CMake] Multiple "projects" one directory

2018-04-27 Thread Scott Bloom
I have a rather complicated Qt based project. We are looking at rolling out a subset tool, and it will be significantly smaller in functionality. For that mode, I would like to set a CMake variable LITEVERSION that builds the tool with -DLITEVERSION defined. however, one (or two) folders, the

Re: [CMake] Help Accommodating Ninja when including CMAKE_CURRENT_BINARY_DIR

2018-04-27 Thread Robert Maynard
I recommend going with the custom target / custom command route. On Fri, Apr 27, 2018 at 5:19 AM, Stephen McDowell wrote: > Upon further inspection, it seems more related to PRE_BUILD. The step to > generating the files is through a add_custom_command call, which from the > docs apparently may

Re: [CMake] cmake --find-package deprecated?

2018-04-27 Thread Jeandet Alexis
Hi Alexander, all, here is a WIP patch https://gitlab.kitware.com/cmake/cmake/merge_requests/2017 Any advise, help on how to improve this is welcome. Alexis. On Tue, 2018-04-03 at 22:00 +0200, Alexander Neundorf wrote: > On 2018 M04 3, Tue 16:01:58 CEST jeandet wrote: > > Hi all, > > > > Readin

Re: [CMake] Help Accommodating Ninja when including CMAKE_CURRENT_BINARY_DIR

2018-04-27 Thread Stephen McDowell
Upon further inspection, it seems more related to PRE_BUILD. The step to generating the files is through a add_custom_command call, which from the docs apparently may end up being PRE_LINK. I tried generating into the ${CMAKE_CURRENT_SOURCE}/include/nanogui, which will work for Makefiles but n

[CMake] Help Accommodating Ninja when including CMAKE_CURRENT_BINARY_DIR

2018-04-27 Thread Stephen McDowell
Hello, I have looked around and seen a few issues discussing this, but have not seen any solutions. It seems related to this: https://gitlab.kitware.com/cmake/cmake/issues/17450 In the sense that absolute paths are desired. 1. Previously,