1 2include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__) 4spec2def(twain_32.dll twain_32.spec) 5 6list(APPEND SOURCE 7 dsm_ctrl.c 8 twain32_main.c 9 twain_i.h) 10 11add_library(twain_32 SHARED 12 ${SOURCE} 13 twain_32.rc 14 ${CMAKE_CURRENT_BINARY_DIR}/twain_32.def) 15 16set_module_type(twain_32 win32dll) 17target_link_libraries(twain_32 wine) 18add_importlibs(twain_32 msvcrt kernel32 ntdll) 19add_pch(twain_32 twain_i.h SOURCE) 20add_cd_file(TARGET twain_32 DESTINATION reactos FOR all) 21