Re: [CMake] Setting MIDL Include path via cmake

2011-08-12 Thread David Cole
We actually have a test for idl files in the CMake test suite: VSMidl. See where it was added in this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=13caaa3eb74a11dbf067409ea129321718d34dfe However, there does appear to be an inconsistency between Visual Studio 9 and earlier

Re: [CMake] Setting MIDL Include path via cmake

2011-08-12 Thread David Cole
I pushed this commit to 'next' just now: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ac22e2a8790e507d7600e0876585424db70f785b Which makes the VS 7, 8 and 9 generators use include_directories for midl command lines, to make them consistent with the VS 10 generator. If nobody objects to

Re: [CMake] Setting MIDL Include path via cmake

2011-08-05 Thread David Cole
H... I have some old code where I built an ActiveX control that included an idl file that does this: include_directories(${CMAKE_CURRENT_BINARY_DIR}/\$(IntDir)) include_directories(${CMAKE_CURRENT_BINARY_DIR}/\$(OutDir)) I know it used to work, but I haven't built that project in about 4

[CMake] Setting MIDL Include path via cmake

2011-08-04 Thread Paul Whelan
Hi guys, I'm new to the mailing list and fairly new to cmake itself, so I hope this isn't to basic a question to be posting here. Please refer me to the appropriate url/forum, etc if it is. I have a windows COM project that I'm trying to convert to a cmake build. The IDL file in that

Re: [CMake] Setting MIDL Include path via cmake

2011-08-04 Thread David Cole
Does calling include_directories(${CMAKE_CURRENT_BINARY_DIR}) before calling add_library work? On Thu, Aug 4, 2011 at 4:14 PM, Paul Whelan pwhe...@aer.com wrote: Hi guys, I'm new to the mailing list and fairly new to cmake itself, so I hope this isn't to basic a question to be posting