@ -1114,13 +1114,22 @@ macro( tde_add_library _arg_target )
file ( RELATIVE_PATH _target_path "${CMAKE_BINARY_DIR}" "${_target_lib}" )
file ( RELATIVE_PATH _target_path "${CMAKE_BINARY_DIR}" "${_target_lib}" )
if ( NOT _exclude_from_all )
if ( NOT _exclude_from_all )
# c r e a t e t a r g e t f o r a l l m e t a d a t a w r i t e s
if ( NOT TARGET tdelfeditor-write )
add_custom_target ( tdelfeditor-write
W O R K I N G _ D I R E C T O R Y " $ { C M A K E _ B I N A R Y _ D I R } "
D E P E N D S $ { T D E L F E D I T O R _ E X E C U T A B L E }
C O M M E N T " W r i t e m e t a d a t a t o b i n a r i e s . . . "
)
endif ( )
add_custom_target (
add_custom_target (
$ { _ t a r g e t } + m e t a d a t a A L L
$ { _ t a r g e t } + m e t a d a t a A L L
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - m $ { _ t a r g e t _ l i b } $ { E L F _ E M B E D D I N G _ M E T A D A T A } | | t r u e
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - m $ { _ t a r g e t _ l i b } $ { E L F _ E M B E D D I N G _ M E T A D A T A } | | t r u e
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - e $ { _ t a r g e t _ l i b } | | t r u e
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - e $ { _ t a r g e t _ l i b } | | t r u e
C O M M E N T " S t o r i n g S C M m e t a d a t a i n $ { _ t a r g e t _ p a t h } "
C O M M E N T " S t o r i n g S C M m e t a d a t a i n $ { _ t a r g e t _ p a t h } "
D E P E N D S $ { _ t a r g e t } $ { T D E L F E D I T O R _ E X E C U T A B L E }
D E P E N D S td e l f e d i t o r - w r i t e
)
)
add_dependencies ( tdelfeditor-write ${ _target } )
else ( )
else ( )
add_custom_command (
add_custom_command (
T A R G E T $ { _ t a r g e t }
T A R G E T $ { _ t a r g e t }
@ -1338,6 +1347,14 @@ macro( tde_add_executable _arg_target )
set ( ELF_EMBEDDING_METADATA "\" ${ _target } \" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"${_notes}\"" )
set ( ELF_EMBEDDING_METADATA "\" ${ _target } \" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"${_notes}\"" )
separate_arguments ( ELF_EMBEDDING_METADATA )
separate_arguments ( ELF_EMBEDDING_METADATA )
if ( TDELFEDITOR_EXECUTABLE )
if ( TDELFEDITOR_EXECUTABLE )
# c r e a t e t a r g e t f o r a l l m e t a d a t a w r i t e s
if ( NOT TARGET tdelfeditor-write )
add_custom_target ( tdelfeditor-write
W O R K I N G _ D I R E C T O R Y " $ { C M A K E _ B I N A R Y _ D I R } "
D E P E N D S $ { T D E L F E D I T O R _ E X E C U T A B L E }
C O M M E N T " W r i t e m e t a d a t a t o b i n a r i e s . . . "
)
endif ( )
get_filename_component ( _target_path ${ CMAKE_CURRENT_BINARY_DIR } / ${ _target } ABSOLUTE )
get_filename_component ( _target_path ${ CMAKE_CURRENT_BINARY_DIR } / ${ _target } ABSOLUTE )
file ( RELATIVE_PATH _target_path "${CMAKE_BINARY_DIR}" "${_target_path}" )
file ( RELATIVE_PATH _target_path "${CMAKE_BINARY_DIR}" "${_target_path}" )
add_custom_target (
add_custom_target (
@ -1346,8 +1363,9 @@ macro( tde_add_executable _arg_target )
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - e $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ t a r g e t } | | t r u e
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - e $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ t a r g e t } | | t r u e
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - t $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ t a r g e t } $ { _ t a r g e t } | | t r u e
C O M M A N D $ { T D E L F E D I T O R _ E X E C U T A B L E } - t $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ t a r g e t } $ { _ t a r g e t } | | t r u e
C O M M E N T " S t o r i n g S C M m e t a d a t a i n $ { _ t a r g e t _ p a t h } "
C O M M E N T " S t o r i n g S C M m e t a d a t a i n $ { _ t a r g e t _ p a t h } "
D E P E N D S ${ _ t a r g e t } $ { T D E L F E D I T O R _ E X E C U T A B L E }
D E P E N D S td e l f e d i t o r - w r i t e
)
)
add_dependencies ( tdelfeditor-write ${ _target } )
endif ( TDELFEDITOR_EXECUTABLE )
endif ( TDELFEDITOR_EXECUTABLE )
endmacro ( tde_add_executable )
endmacro ( tde_add_executable )