|
Lines 42-50
macro( tde_get_arg ARG_NAME COUNT RETURN REST )
Link Here
|
| 42 |
list( APPEND ${REST} ${ARGN} ) |
42 |
list( APPEND ${REST} ${ARGN} ) |
| 43 |
list( FIND ${REST} ${ARG_NAME} _arg_idx) |
43 |
list( FIND ${REST} ${ARG_NAME} _arg_idx) |
| 44 |
if( NOT ${_arg_idx} EQUAL -1 ) |
44 |
if( NOT ${_arg_idx} EQUAL -1 ) |
| 45 |
list( APPEND ${REST} ___ensure_list___ ) |
|
|
| 46 |
list( REMOVE_AT ${REST} ${_arg_idx} ) |
45 |
list( REMOVE_AT ${REST} ${_arg_idx} ) |
| 47 |
list( REMOVE_ITEM ${REST} ___ensure_list___ ) |
|
|
| 48 |
set( _i 0 ) |
46 |
set( _i 0 ) |
| 49 |
while( ${_i} LESS ${COUNT} ) |
47 |
while( ${_i} LESS ${COUNT} ) |
| 50 |
list( GET ${REST} ${_arg_idx} _arg ) |
48 |
list( GET ${REST} ${_arg_idx} _arg ) |
|
Lines 73-84
macro( tde_execute_process )
Link Here
|
| 73 |
execute_process( ${_rest_args} ) |
71 |
execute_process( ${_rest_args} ) |
| 74 |
if( ${_result_variable} ) |
72 |
if( ${_result_variable} ) |
| 75 |
if( DEFINED _message ) |
73 |
if( DEFINED _message ) |
| 76 |
message( FATAL_ERROR ${_message} ) |
74 |
tde_message_fatal( ${_message} ) |
| 77 |
else() |
75 |
else() |
| 78 |
if( ${${_result_variable}} MATCHES "^[0-9]+$" ) |
76 |
if( ${${_result_variable}} MATCHES "^[0-9]+$" ) |
| 79 |
set( ${_result_variable} "status ${${_result_variable}} returned!" ) |
77 |
set( ${_result_variable} "status ${${_result_variable}} returned!" ) |
| 80 |
endif() |
78 |
endif() |
| 81 |
message( FATAL_ERROR "Error executing '${_command}': ${${_result_variable}}" ) |
79 |
tde_message_fatal( "Error executing '${_command}': ${${_result_variable}}" ) |
| 82 |
endif() |
80 |
endif() |
| 83 |
endif() |
81 |
endif() |
| 84 |
endmacro( tde_execute_process ) |
82 |
endmacro( tde_execute_process ) |
|
Lines 268-273
macro( tde_add_ui_files _sources )
Link Here
|
| 268 |
add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp |
266 |
add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp |
| 269 |
COMMAND ${CMAKE_COMMAND} |
267 |
COMMAND ${CMAKE_COMMAND} |
| 270 |
-DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE} |
268 |
-DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE} |
|
|
269 |
-DTQT_REPLACE_SCRIPT:FILEPATH=${TQT_REPLACE_SCRIPT} |
| 271 |
-DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR} |
270 |
-DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR} |
| 272 |
-DUI_FILE:FILEPATH=${_ui_absolute_path} |
271 |
-DUI_FILE:FILEPATH=${_ui_absolute_path} |
| 273 |
-DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR} |
272 |
-DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR} |