Skip to content

drunot/CMakeMircrosoftRPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake for Mircrosoft RPC

Include the cmake file with

include(MircrosoftRPC.cmake)

After inclusion 5 new cmake functions is available. They will be descirbed bellow.

To create the header file and the *_c.c and *_s.c files call the function bellow. They will be created in the build directory. If multiple interfaces is made you can provide a list of files. This is applies to all 5 functions. The last argument for the later functions will be the variable name.

CreateIDLHeaders("path/to.idl.idl")

The following function will give the header file paths to include in the client and server executebles. They will be saved in idl_header_var_name.

GetIDLHeaderNames("path/to.idl" idl_header_var_name)

The following function will give the source file paths to include in the client executeble. They will be saved in idl_client_var_name.

GetIDLClientNames("path/to.idl" idl_client_var_name)

The following function will give the source file paths to include in the server executeble. They will be saved in idl_server_var_name.

GetIDLServerNames("path/to.idl" idl_server_var_name)

The following function will give the include paths to make it possible to just include the name of the header without having to find it's path. (In the example bellow the header will be called to.h) All the paths will be saved in idl_inc_dir_var_name.

GetIDLIncludeDirs("path/to.idl" idl_inc_dir_var_name)

An example of how it could be used is availbe in the examples folder.

For the file to work both the midl and the cl compillers needs to be available, by just calling their names.

About

Adds CMake functions to handle Microsoft RPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages