[CMake] Module dependency with Fortran code (avoiding compilation cascades)

2017-02-10 Thread Angel de Vicente
Hi, our project was using hand-made makefiles which were becoming difficult to maintain, so I decided to migrate to CMake. This is my first time with CMake, so still testing it, but there is something that I haven't figured out how to do, namely avoid compilation cascades. I'm using right now Int

Re: [CMake] Cross project include/link pathing?

2017-02-10 Thread Andreas Naumann
Dear Chris, your description looks like the perfect example for ExternalProject_add. Than, every library would be a project. Inside each library, it looks for its dependency using find_package() and exports the dependency chain. Your CMakeLists.txt of the application than has two possibilitie