Quoting in catch-up mode...
David Williams wrote:
Thinking about the CMake scripts some more, there's no reason for us to actually prevent a 'make install' type procedure.
I agree. There can perhaps be some discussion of what we should be installing but at least it should be the headers.
David Williams wrote:
Right, just thinking out loud here in case someone objects (particularly Matt, as he knows the CMake stuff a ittle better). Matt, we also have this 'PolyVoxConfig.cmake.in' - is this for allowing people to find PolyVox with CMake once it is installed on their machine? I think this is still useful so I'll leave it intact. Though it makes some references to the PolyVoxCore_LIBRARY_INSTALL_DIRS which may no longer be relevant?
Correct. The
PolyVoxConfig.cmake file is installed to a standard location so that even if PolyVox itself is installed somewhere weird, users can still find it through the standard find_package magic.
David Williams wrote:
Generally speaking I'm still testing on Linux to make sure everything still compiles. But some of this installation stuff I'm not so familiar with so it may need tweaking afterwards. In general the CMake code will be getting simpler though.
I will have a look at this soon to check thorough to make sure all the old stuff still makes sense. I expect that there's quite a lot we can remove or reduce.
Overall this look great. It definitely seems to much cleaner overall and will make everyone's life easier. Along with the OpenGL 3 and Qt 5 updates you've made, it's all seeming much more modern and neat.
I'll have a look over the CMake Qt5 stuff as well as I think some of the ways I originally implemented it are non-optimal and there can be a lot of cleanup.
I have noticed that due to some CMake confusion (possibly due to a merge conflict), the DecodeOnGPU example is not being built and as a result you missed it when converting the code. You need to add "ADD_SUBDIRECTORY(examples/DecodeOnGPU)" to the list in the
main CMakeLists.txt file and not the one in the
examples directory (as that one currently does nothing -- though I am planning on changing that). I would fix the code myself but you were working on this more recently and so probably have a better idea about how it should work.