[Cmake] Qt examples...
Ian.M.Scott at stud.man.ac.uk
Ian.M.Scott at stud.man.ac.uk
Fri Mar 7 11:53:57 EST 2003
Here is an example of building a library that uses QT .ui files.
If you were to generate a nice small self-contained example , I'd be happy to add it to the CMake
Examples directory.
Regards,
Ian.
INCLUDE( ${MODULE_PATH}/FindQt.cmake )
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
ADD_DEFINITIONS( ${QT_DEFINITIONS} )
INCLUDE_DIRECTORIES( ${my_project_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)
> -----Original Message-----
> From: Jean-Francois LECOMTE [mailto:lecomte at litteral.fr]
> Sent: Friday, March 07, 2003 4:33 PM
> To: cmake at public.kitware.com
> Subject: [Cmake] Qt examples...
>
>
> Could someone tell me where i can found some small examples
> using cmake
> with QT lib using some ui files.
>
> Thanks
>
> --
> Jean-Francois LECOMTE <lecomte at litteral.fr>
> Litteral
>
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
>
More information about the CMake
mailing list