[Cmake] QT setup: list all .ui files

Bill Hoffman bill.hoffman at kitware.com
Fri Apr 4 16:15:48 EST 2003


There is one other problem.   CMake will not automatically run
itself when new files are added and removed from the directory.
That will be up to the user.    Which could be confusing, as
you could type make many times, and not get new files.    CMake
puts depends into the Makefile on the CMakeLists.txt file, so
if you add/remove a file from a list of files cmake will automatically
re-run the next time make is run.

As I said, it will most likely get added, but I consider it poor style,
and am pretty sure that projects using the feature will have confused users
posting the cmake list.....

-Bill




At 03:53 PM 4/4/2003, Bitter, Ingmar (NIH/CC/DRD) wrote:
>I don't mind renaming a file to foo.cpp.unused in order to remove it from
>the list of files considered for a build.  I think that that is about the
>same effort as finding it in the list of source files and commenting it out.
>But with *.ui or similar one can make the common case fast.  It would not be
>needed to edit the setup files when adding another call to the project -
>very convenient.  It also helps to eliminate dead code!
>
>Please consider adding it to the next release.
>
>-Ingmar
>
>
>-----Original Message-----
>From: Bill Hoffman [mailto:bill.hoffman at kitware.com] 
>Sent: Friday, April 04, 2003 2:40 PM
>To: Bitter, Ingmar (NIH/CC/DRD); cmake at public.kitware.com
>Subject: Re: [Cmake] QT setup: list all .ui files
>
>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 
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 





More information about the CMake mailing list