[CMake] How can I get list of object files in a variable?
zia at itsib.ru
zia at itsib.ru
Tue Sep 30 01:30:57 EDT 2008
Hello!
I have a little problems.
problem number one
How can I get list of object files in a variable?
that is I write in CMakeLists.txt SET(CMAKE_C_LINK_EXECUTABLE "c:/linkit.bat <TARGET> <OBJECTS>")
when linkit.bat
echo "%1" > obj.txt
echo "%2" >> obj.txt
but I am not see list of object files.
if I write MESSAGE(STATUS <OBJECTS>), MESSAGE(STATUS "<OBJECTS>") or MESSAGE(STATUS ${OBJECTS})
ADD_CUSTOM_COMMAND(OUTPUT "o.txt"
COMMAND "c:/linkit.bat <TARGET> <OBJECTS>"
COMMENT "Create obj files")
I am not see list of object files too. How can I get list of object
files?
and problem number two
Does CMake support svn but it is not run ADD_CUSTOM_COMMAND?
More information about the CMake
mailing list