[CMake] QT4_ADD_RESOURCES not creating cpp on Mac OS X
Filipe Sousa
filipe at ipb.pt
Mon Oct 23 17:48:30 EDT 2006
Nick Arini wrote:
> Dear CMake users,
>
> I am trying to get some resources (icon images) compiled in a Qt
> application on Mac OS X (10.4.8 Tiger) with cmake 2.4-patch 3.
>
> I am using version 4.2.0-snapshot-20060910 of Qt.
>
> I have the following in my CMakeLists.txt:
>
> PROJECT(QtApp)
>
>
> INCLUDE (${CMAKE_ROOT}/Modules/FindQt4.cmake)
> INCLUDE( ${QT_USE_FILE} )
>
> INCLUDE_DIRECTORIES(
> ${QT_INCLUDE_DIR}
> ${QT_QTGUI_INCLUDE_DIR}
> ${QT_QTCORE_INCLUDE_DIR}
> ${QT_INCLUDE_PATH}
> )
>
> LINK_LIBRARIES (
> ${QT_QTCORE_LIBRARY}
> ${QT_QTGUI_LIBRARY}
> )
>
>
> # Gather the source files
> SET(QtApp_SRCS
> main.cpp
> )
>
>
> #SET(QtApp_MOCS
> #)
>
> SET(QtApp_RCCS
> icons.qrc
> )
>
> # generate rules for building source files from the resources
> QT4_ADD_RESOURCES(QtApp_RCC_SRCS ${QtApp_RCCS})
>
> #QT4_WRAP_CPP(QtApp_MOC_SRCS ${VTKD_MOCS})
>
> # Create the executable
> ADD_EXECUTABLE(QtApp ${QtApp_SRCS} ${QtApp_RCCS_SRCS})
------------------------------------------------^
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20061023/fa9cee99/signature.pgp
More information about the CMake
mailing list