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