mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[CMAKE]
- Add a macro to handle IDL interfaces. svn path=/branches/cmake-bringup/; revision=50119
This commit is contained in:
parent
7c5322ff9b
commit
cef278f70f
1 changed files with 9 additions and 0 deletions
|
@ -236,3 +236,12 @@ macro(ADD_TYPELIB TARGET)
|
|||
endforeach()
|
||||
add_custom_target(${TARGET} ALL DEPENDS ${OBJECTS})
|
||||
endmacro()
|
||||
|
||||
macro(add_idl_interface IDL_FILE)
|
||||
custom_incdefs()
|
||||
get_filename_component(FILE ${IDL_FILE} NAME_WE)
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c
|
||||
COMMAND ${IDL_COMPILER} ${result_incs} ${result_defs} -m32 --win32 -u -U ${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c ${CMAKE_CURRENT_SOURCE_DIR}/${IDL_FILE}
|
||||
DEPENDS ${IDL_FILE})
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${FILE}_i.c PROPERTIES GENERATED TRUE)
|
||||
endmacro()
|
||||
|
|
Loading…
Reference in a new issue