Edwin Rodríguez

Wrap UI considering namespace using CMake


It's common to organize code in folders, usually representing namespaces to avoid name clashes. But when using ui Qt files cmake, the qt5_wrap_ui macro only consider filenames ignoring folder path. Ui files with the same name and different folder overlaps in the build dirrectory generating compilation problems. The following code is a replacement of qt5_wrap_ui macro that consider filepath fixing the exposed problem.

Code

The awesome macro:


2017 - Edwin Rodríguez