I'm using lupdate/lrelease in QT and trying to have a generated file installed. I've hit a few problems that I'm not clear on how they should be resolved.
To produce the file I have a chain of commands that ends with:
add_custom_command(
OUTPUT English.qm
COMMAND lrelease ${LANG_DIR}/MasterTypes.ts -qm English.qm
DEPENDS ${LANG_DIR}/MasterTypes.ts
)
To directly produce this file I add the following target:
add_custom_target( language
DEPENDS English.qm )
Now "make language" produces the file(s) as I want. I now however need
to install them. install files won't take a relative path so I've
specified the following:
install( FILES ${CMAKE_BINARY_DIR}/src/gui/English.qm DESTINATION data/ )
I thought there might be some way to refer to the relative "English.qm"
file. Is there?
That aside, I need that the install command checks the dependencies on
the file. As specified it does not, and I don't see a DEPENDS clause for
install. How do I ensure that the installation updates the file as
required?
--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
BigTPoker - Poker fun and games
http://BigTPoker.com/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ 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
