[CMake] compiling idl files
Camek, Alexander
Alexander.Camek at elektrobit.com
Mon Jun 25 03:26:01 EDT 2007
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: cmake-bounces+alexander.camek=elektrobit.com at cmake.org
> [mailto:cmake-bounces+alexander.camek=elektrobit.com at cmake.org
> ] On Behalf Of Jon W
> Sent: Friday, June 22, 2007 7:59 PM
> To: cmake at cmake.org
> 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
> CMake at cmake.org
> 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.
More information about the CMake
mailing list