1
2spec2def(winprint.dll winprint.spec ADD_IMPORTLIB)
3
4list(APPEND SOURCE
5    main.c
6    raw.c
7    precomp.h)
8
9add_library(winprint MODULE
10    ${SOURCE}
11    winprint.rc
12    ${CMAKE_CURRENT_BINARY_DIR}/winprint.def)
13
14set_module_type(winprint win32dll UNICODE)
15target_link_libraries(winprint wine)
16add_importlibs(winprint spoolss msvcrt kernel32 ntdll)
17add_pch(winprint precomp.h SOURCE)
18if(ARCH STREQUAL "amd64")
19    add_cd_file(TARGET winprint DESTINATION reactos/system32/spool/prtprocs/x64 FOR all)
20else()
21    add_cd_file(TARGET winprint DESTINATION reactos/system32/spool/prtprocs/w32x86 FOR all)
22endif()
23