* Sync up to trunk r55544.
[reactos.git] / dll / win32 / sxs / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
3 add_definitions(-D__WINESRC__)
4
5 spec2def(sxs.dll sxs.spec)
6
7 list(APPEND SOURCE
8 cache.c
9 sxs.c
10 ${CMAKE_CURRENT_BINARY_DIR}/sxs_stubs.c
11 ${CMAKE_CURRENT_BINARY_DIR}/sxs.def)
12
13 add_library(sxs SHARED ${SOURCE})
14 set_module_type(sxs win32dll ENTRYPOINT 0 )
15
16 target_link_libraries(sxs wine)
17
18 if(MSVC)
19 set_source_files_properties(cache.c PROPERTIES COMPILE_FLAGS /FImsvchelper.h)
20 target_link_libraries(sxs uuid)
21 endif()
22
23 add_importlibs(sxs oleaut32 ole32 kernel32 ntdll)
24 add_dependencies(sxs psdk)
25
26 add_cd_file(TARGET sxs DESTINATION reactos/system32 FOR all)