I've read this link
http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software and I type code
below

set(${PROJECT_NAME}_HDRS
mainwindow.h
item.h
)
set(${PROJECT_NAME}_SRCS
main.cpp
mainwindow.cpp
item.cpp
)
SET(UPDATE_TRANSLATIONS TRUE)
SET(GLOB TRANSLATION_FILES FILES translations/*.ts)
SET(FILES_TO_TRANSLATE )
set(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${${PROJECT_NAME}_SRCS})
if(UPDATE_TRANSLATIONS)
    QT4_CREATE_TRANSLATION(QM_FILE ${CMAKE_SOURCE_DIR}/translations
${FILES_TO_TRANSLATE} ${TRANSLATION_FILES})
else(UPDATE_TRANSLATIONS)
    QT4_ADD_TRANSLATION(${CMAKE_SOURCE_DIR}/translations
${TRANSLATION_FILES})
endif(UPDATE_TRANSLATIONS)

where translations is folder in source folder, but cmake don't return any
result. Help me fix this bug! Thank in advance!
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to