cmake: update inteface functions to use xpcg
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
find_program(IFC
|
||||
NAMES ifc
|
||||
find_program(XPCG
|
||||
NAMES xpcg
|
||||
REQUIRED
|
||||
HINTS ${BUILD_TOOLS_DIR})
|
||||
message(STATUS "Found interface compiler: ${IFC}")
|
||||
message(STATUS "Found interface generator: ${XPCG}")
|
||||
|
||||
function(add_interface)
|
||||
set(options)
|
||||
@@ -20,9 +20,9 @@ function(add_interface)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${header_path}
|
||||
COMMAND ${IFC} ${arg_PATH}
|
||||
COMMAND ${XPCG} ${arg_PATH}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${arg_PARENT_DIR}
|
||||
COMMENT "Compiling interface: ${arg_NAME}")
|
||||
COMMENT "Generating interface: ${arg_NAME}")
|
||||
|
||||
add_custom_target(ifgen-${arg_NAME} ALL
|
||||
DEPENDS ${header_path})
|
||||
|
||||
Reference in New Issue
Block a user