zeratax / yacx

Yet Another CudaExecutor - wrapper to easily compile and execute cuda kernels
https://zeratax.github.io/yacx
MIT License
8 stars 4 forks source link

absolute path constant #72

Open zeratax opened 4 years ago

zeratax commented 4 years ago

It would probably be extremely useful to include a global constant with the absolute path to the project root. This would help with tests needing to copy files everywhere due to relative paths.

visualJames commented 4 years ago

https://en.cppreference.com/w/cpp/filesystem/path We could work with std::filesystem

zeratax commented 4 years ago

@visualJames with std::filesystem and the __FILE__ macro we could probably create a constexpr that creates absolute paths for the project