1 2add_definitions(-D__WINESRC__) 3include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(vssapi.dll vssapi.spec) 5 6list(APPEND SOURCE 7 main.c 8 ${CMAKE_CURRENT_BINARY_DIR}/vssapi_stubs.c 9 ${CMAKE_CURRENT_BINARY_DIR}/vssapi.def) 10 11if(MSVC AND ARCH STREQUAL "i386") 12 add_asm_files(vssapi_asm msvc.s) 13endif() 14 15add_library(vssapi MODULE ${SOURCE} ${vssapi_asm}) 16set_module_type(vssapi win32dll) 17target_link_libraries(vssapi wine) 18add_importlibs(vssapi msvcrt kernel32 ntdll) 19add_cd_file(TARGET vssapi DESTINATION reactos/system32 FOR all) 20