xref: /reactos/dll/win32/sxs/CMakeLists.txt (revision 41805926)
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
11list(APPEND PCH_SKIP_SOURCE
12    guid.c)
13
14add_library(sxs MODULE
15    ${SOURCE}
16    ${PCH_SKIP_SOURCE}
17    ${CMAKE_CURRENT_BINARY_DIR}/sxs_stubs.c
18    ${CMAKE_CURRENT_BINARY_DIR}/sxs.def)
19
20set_module_type(sxs win32dll)
21target_link_libraries(sxs wine)
22add_importlibs(sxs oleaut32 ole32 msvcrt kernel32 ntdll)
23add_pch(sxs precomp.h "${PCH_SKIP_SOURCE}")
24add_cd_file(TARGET sxs DESTINATION reactos/system32 FOR all)
25