Hi Jon,

If you mean idl files like they are used in Corba, then there is a easy
way to do that.

I have done it that way:

FIND_PROGRAM( CORBAIDL <IDLPROGRAMM> )
ADD_CUSTOM_COMMAND(
                OUTPUT ${PROJECT_BINARY_DIR}/Output.cpp
                DEPENDS ${CORBAIDL} 
                COMMAND ${CORBAIDL} 
                ARGS -bcxx -Wbh=.h -Wbs=.cpp -I${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/Output.idl
        )
        SET(SRC ${SRC} ${PROJECT_BINARY_DIR}/Output.cpp)

You have to include the builded files into your sources. This is done by
the set command. 

Hope i could help.

Greetings

Alexnader

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Jon W
> Sent: Friday, June 22, 2007 7:59 PM
> To: [email protected]
> Subject: [CMake] compiling idl files
> 
> Does anybody have a CMakelists.txt example on how to properly 
> compile idl files into visual studio projects?  I'm not sure 
> if I need to use ADD_CUSTOM_COMMAND or just list the idl 
> files in the sources, etc..
> 
> Thanks,
> Jon
> _______________________________________________
> CMake mailing list
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
> 


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to