1remove_definitions(-D_WIN32_WINNT=0x502)
2add_definitions(-D_WIN32_WINNT=0x600)
3
4spec2def(localspl.dll localspl.spec ADD_IMPORTLIB)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/skiplist)
7
8list(APPEND SOURCE
9    forms.c
10    jobs.c
11    main.c
12    monitors.c
13    ports.c
14    precomp.h
15    printerdata.c
16    printerdrivers.c
17    printers.c
18    printingthread.c
19    printprocessors.c
20    spoolfile.c
21    tools.c
22    xcv.c)
23
24add_library(localspl MODULE
25    ${SOURCE}
26    localspl.rc
27    ${CMAKE_CURRENT_BINARY_DIR}/localspl_stubs.c
28    ${CMAKE_CURRENT_BINARY_DIR}/localspl.def)
29
30set_module_type(localspl win32dll UNICODE)
31target_link_libraries(localspl skiplist16 wine)
32add_importlibs(localspl user32 advapi32 advapi32_vista netapi32 rpcrt4 secur32 spoolss msvcrt kernel32 ntdll)
33add_pch(localspl precomp.h SOURCE)
34add_cd_file(TARGET localspl DESTINATION reactos/system32 FOR all)
35