Re: [CMake] Subprojects and Cmake?

2016-03-06 Thread Juhani Karlsson
Thanks for the fast answer Nicholas! Superproject sounds good to my ears! I`m going to try the ExternalProject_Add again. I think I missed something essential when I tried to use it! NanoGui builds fine as is - so Its just me fng things up ; ) Thanks, - J On 6 March 2016 at 20:04, Nicholas

Re: [CMake] Subprojects and Cmake?

2016-03-06 Thread Nicholas Braden
If you are using the add_subdirectory approach, I believe you should not be using find_package and instead you just need to use target_link_libraries to have everything handled for you. Another approach would be making a superproject that builds your dependencies and your own project via