Re: [CMake] Automatically Detecting Basic Fortran Dependencies

2011-05-25 Thread Brad King
On 05/25/2011 08:18 AM, sind...@gmail.com wrote: > I also like your suggestion of having all source files in one directory They don't actually have to be in one directory. You only need to name them from one directory. For example: add_executable(myMain exe/mymain.f90 lib1/lib1.f90

Re: [CMake] Automatically Detecting Basic Fortran Dependencies

2011-05-25 Thread sind...@gmail.com
Dear Brad, Thanks for your thorough explanation, I wasn't aware that the dependency scanning only worked within a single target, it makes sense now. Currently I am using a UNIX Make files for building but we're moving to CMake to have the application run on Windows as well. I have a

Re: [CMake] Automatically Detecting Basic Fortran Dependencies

2011-05-24 Thread Brad King
On 5/23/2011 2:15 PM, sind...@gmail.com wrote: > I have the below directory structure for Fortran code which has very > basic dependencies, I am not able to get CMake to recognize the > dependencies automatically without me explicitly having to specify it > using add_dependencies or target_link_lib