reactos/dll/win32/stdole32.tlb/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- rewrite spec2def macro because
1. cmake gracefully handles def files as source files
2. cmake gracefully handles autogenerated files as source
3. it did not take into account the fact that all shared libraries haven't the .dll extension

svn path=/branches/cmake-bringup/; revision=49358
2010-10-30 16:08:19 +00:00

23 lines
817 B
CMake

add_definitions(-D__WINESRC__)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
ADD_TYPELIB(std_ole_v1 std_ole_v1.idl)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/stdole32.tlb.spec --filename stdole32.tlb
DEPENDS native-winebuild)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def PROPERTIES GENERATED TRUE)
add_custom_target(stdole32.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/stdole32.tlb.def)
add_library(stdole32.tlb SHARED rsrc.rc)
set_entrypoint(stdole32.tlb 0)
set_target_properties(stdole32.tlb PROPERTIES SUFFIX "")
add_dependencies(stdole32.tlb std_ole_v1 stdole32.tlb_def)
add_cab_target(stdole32.tlb 1)