file(GLOB SOURCE *.c *.cpp *.rc)
add_library(typelib SHARED ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/typelib.def typelib.dll16.obj)
include_directories(../wine ${CMAKE_BINARY_DIR})
add_definitions(-D_X86_ -D__WINESRC__ -D__i386__ -DHAVE_STRNCASECMP -DHAVE__STRNICMP -D_WINTERNL_ -DNtCurrentTeb=NtCurrentTeb__ -DDECLSPEC_HIDDEN= -Dstrncasecmp=_strnicmp)
spec_build(typelib.dll16 typelib)
target_link_libraries(typelib libwine winecrt0 krnl386 ole2 ole2disp)
set_target_properties(typelib PROPERTIES SUFFIX ".dll16")
