[CMAKE]
[reactos.git] / dll / win32 / localspl / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 remove_definitions(-D_WIN32_WINNT=0x502)
4 add_definitions(-D_WIN32_WINNT=0x600)
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6
7 spec2def(localspl ${CMAKE_CURRENT_SOURCE_DIR}/localspl.spec ${CMAKE_CURRENT_BINARY_DIR}/localspl.def)
8
9 add_library(localspl SHARED
10 localmon.c
11 localspl_main.c
12 provider.c
13 localspl.rc)
14
15 set_module_type(localspl win32dll)
16
17 target_link_libraries(localspl
18 ${CMAKE_CURRENT_BINARY_DIR}/localspl.def
19 wine)
20
21 add_importlibs(localspl
22 spoolss
23 user32
24 advapi32
25 kernel32
26 ntdll)
27
28 add_dependencies(localspl localspl_def)