[CMake] Cmake issue regarding conversion of existing Visual Studio .targets files to cmake

David Cole dlrdave at aol.com
Wed Jul 30 11:52:09 EDT 2014


To the best of my knowledge, CMake does not do anything with ".targets" 
files. It doesn't know what they are, and it doesn't generate any of 
them...

What is the function of the .targets files in your non-CMake build 
system?

Perhaps somebody else who is more familiar with .targets files is 
listening and can chime in. I'm not sure what to recommend for you. 
add_custom_target and add_custom_command are commands you can use to 
organize and execute custom build steps (as opposed to compiling source 
files as part of an add_library or add_executable)

Maybe.... with the build system you can generate using CMake, you won't 
even need the .targets files anymore. If you do need them, I'd be 
curious to learn what it is your .targets file do and why you still 
need them.


HTH,
David C.



More information about the CMake mailing list