[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Wed, 28 Jul 2010 17:00:50 +0000 (17:00 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Wed, 28 Jul 2010 17:00:50 +0000 (17:00 +0000)
- Fix stdole2.

svn path=/branches/cmake-bringup/; revision=48333

include/psdk/CMakeLists.txt

index 2816fcc..caa4e64 100644 (file)
@@ -37,6 +37,7 @@ LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/dbdsad.idl)
 LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/dbinit.idl)
 LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/vmrender.idl)
 LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/sesprp.idl)
+LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/stdole2.idl)
 LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/rstloc.idl)
 LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/rstbas.idl)
 LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/rstinf.idl)
@@ -50,3 +51,13 @@ LIST(REMOVE_ITEM SOURCE ${REACTOS_SOURCE_DIR}/include/psdk/dbprop.idl)
 MACRO_ADD_PSDK_INTERFACES(${SOURCE})
 
 ADD_CUSTOM_TARGET(psdk ALL DEPENDS ${PSDK_HEADERS})
+
+ADD_CUSTOM_COMMAND(
+  OUTPUT ${REACTOS_BINARY_DIR}/include/psdk/stdole2.tlb
+  COMMAND native-widl -I${REACTOS_SOURCE_DIR}/include/dxsdk -I. -I${REACTOS_SOURCE_DIR}/include -I${REACTOS_SOURCE_DIR}/include/psdk -m32 --win32 -t -T ${REACTOS_BINARY_DIR}/include/psdk/stdole2.tlb ${REACTOS_SOURCE_DIR}/include/psdk/stdole2.idl
+  DEPENDS native-widl
+)
+
+SET_SOURCE_FILES_PROPERTIES(${REACTOS_BINARY_DIR}/include/psdk/stdole2.tlb PROPERTIES GENERATED TRUE)
+
+ADD_CUSTOM_TARGET(stdole2 ALL DEPENDS ${REACTOS_BINARY_DIR}/include/psdk/stdole2.tlb)
\ No newline at end of file