[CMake] multiple line of comment howto
luxInteg
lux-integ at btconnect.com
Mon Jul 30 05:42:11 EDT 2012
Greetings
I am learniong cmake. From the documentation:-
add_custom_target(Name [ALL] [command1 [args1...]]
[COMMAND command2 [args2...] ...]
[DEPENDS depend depend depend ... ]
[WORKING_DIRECTORY dir]
[COMMENT comment] [VERBATIM]
[SOURCES src1 [src2...]])
I want to generate multiple line in the compiler output
when using add_custom_target() such as shown below
#-----------
set(line0 "" )
set(line1 "############################" )
set(line2 "compiling $some_source_code} ' )
#------
add_custom_command(whatever ALL
.......
COMMAND ${whatever}
COMMENT ${line0} ${line1} ${line2} ${line1} ${line0}
VERBATIM )
is the above recommended to generate multiple lines?
Guidance would be appreciated.
More information about the CMake
mailing list