[Cmake] QT setup: list all .ui files
Bitter, Ingmar (NIH/CC/DRD)
IBitter at cc.nih.gov
Mon Apr 7 09:39:17 EDT 2003
Hi Ian,
Where the files
qbstm_get_points.cxx
qbstm_get_points.h
qbstm_mouse_traj.cxx
qbstm_mouse_traj.h
already in the directory, or did they get generated after you ran cmake and
started the build of the application ?
-Ingmar
-----Original Message-----
From: Ian Scott [mailto:ian.m.scott at stud.man.ac.uk]
Sent: Monday, April 07, 2003 9:34 AM
To: 'Shunming Fang'
Cc: Cmake at Public. Kitware. Com (E-mail)
Subject: RE: [Cmake] QT setup: list all .ui files
I'm using QT_WRAP_UI and it works in CMake 1.4.x for x> 5 .
I tested it once with CMake 1.6 and it worked then as well, but I don't know
about the latest version.
This is an example CMakeLists.txt file
INCLUDE( ${MODULE_PATH}/NewCMake/FindQt.cmake )
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
ADD_DEFINITIONS( ${QT_DEFINITIONS} )
INCLUDE_DIRECTORIES( ${isbe_bmod_BINARY_DIR} )
IF (QT_WRAP_CPP)
IF (QT_WRAP_UI)
ADD_LIBRARY(qbstm
qbstm_sources
qbstm_ui_sources
qbstm_moc_files
)
TARGET_LINK_LIBRARIES(qbstm bstm qvwr)
SET(qbstm_sources
qbstm_mouse_traj.cxx
qbstm_get_points.cxx
)
SET(qbstm_moc_classes
qbstm_mouse_traj.h
qbstm_get_points.h
)
SET(qbstm_ui
qbstm_get_points_config.ui
qbstm_select_methods_config.ui
)
QT_WRAP_UI(qbstm
qbstm_ui_headers
qbstm_ui_sources
qbstm_ui
)
QT_WRAP_CPP(qbstm
qbstm_moc_files
qbstm_moc_classes
)
ENDIF (QT_WRAP_UI)
ENDIF (QT_WRAP_CPP)
SUBDIRS(tools)
The files in the directory are
CMakeLists.txt
qbstm_get_points.cxx
qbstm_get_points.h
qbstm_get_points_config.ui
qbstm_mouse_traj.cxx
qbstm_mouse_traj.h
qbstm_points_wrapper.h
qbstm_select_methods_config.ui
> -----Original Message-----
> From: Shunming Fang [mailto:fang at blake.3dem.bioch.bcm.tmc.edu]
> Sent: Friday, April 04, 2003 8:53 PM
> To: Bitter, Ingmar (NIH/CC/DRD)
> Cc: cmake at public.kitware.com
> Subject: Re: [Cmake] QT setup: list all .ui files
>
>
> I doubted QT_WRAP_UI work or not in 1.4 or 1.6. Have you test
> it work or
> not?
> Thanks
>
> On Fri, 4 Apr 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
>
_______________________________________________
Cmake mailing list
Cmake at public.kitware.com
http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list