[Cmake] QT setup: list all .ui files

Bill Hoffman bill.hoffman at kitware.com
Fri Apr 4 14:39:40 EST 2003


There is no way to do it directly.
I guess you could try something like this:

http://public.kitware.com/pipermail/cmake/2003-March/001412.html
In that example, an EXEC_PROGRAM is used to call dir, you
would have to IF(UNIX) and add an ls version to work cross platform.

It would not be that hard to add this feature, and it may get
added in the future.   However, its omission was intentional.
I have found it hard to work with makefiles that use *. in them.
You end up building old files, and temporary files that you did not
mean to create in the directory.   Also, there is no way to remove
a file from the build without removing the file.    If all the files
are explicitly listed, they can be commented out, and un-commented without
having to remove the file.   

-Bill


At 12:53 PM 4/4/2003, Bitter, Ingmar (NIH/CC/DRD) wrote:
>Hi,
>
>How do I (automatically) generate list of all *.ui files in a directory to
>feed to QT_WRAP_UI ?
>
>-Ingmar
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 





More information about the CMake mailing list