1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__) 4spec2def(sxs.dll sxs.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 cache.c 8 name.c 9 sxs.c 10 precomp.h 11 ${CMAKE_CURRENT_BINARY_DIR}/sxs_stubs.c) 12 13add_library(sxs SHARED 14 ${SOURCE} 15 guid.c 16 ${CMAKE_CURRENT_BINARY_DIR}/sxs.def) 17 18set_module_type(sxs win32dll) 19target_link_libraries(sxs wine) 20add_importlibs(sxs oleaut32 ole32 msvcrt kernel32 ntdll) 21add_pch(sxs precomp.h SOURCE) 22add_cd_file(TARGET sxs DESTINATION reactos/system32 FOR all) 23