[CMake] proper setup to create file and have it installed
edA-qa mort-ora-y
eda-qa at disemia.com
Mon Dec 27 06:32:25 EST 2010
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101227/20fde0a4/attachment.pgp>
More information about the CMake
mailing list