Re: [CMake] opening files relative to cmake build directory

2015-07-13 Thread Micha Hergarden
On 07/12/2015 02:14 PM, Owen Alanzo Hogarth wrote: I have a little project that's setup like this project main.c build resources source .../module1 .../module2 .../etc main.c loads dynamic libs from under the source folder. I am trying to open up a file using c fopen I create a

[CMake] opening files relative to cmake build directory

2015-07-12 Thread Owen Alanzo Hogarth
I have a little project that's setup like this project main.c build resources source .../module1 .../module2 .../etc main.c loads dynamic libs from under the source folder. I am trying to open up a file using c fopen I create a function to get the base resource path which returns: