[setupapi]
[reactos.git] / reactos / dll / win32 / setupapi / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/include/reactos/wine
4 ${REACTOS_SOURCE_DIR}/include/reactos/idl
5 ${CMAKE_CURRENT_BINARY_DIR})
6
7 add_definitions(
8 -D_SETUPAPI_
9 -D_CFGMGR32_
10 -Dwcsnicmp=_wcsnicmp)
11
12 add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/pnp.idl)
13 spec2def(setupapi.dll setupapi.spec ADD_IMPORTLIB)
14
15 list(APPEND SOURCE
16 cfgmgr.c
17 devclass.c
18 devinst.c
19 dirid.c
20 diskspace.c
21 driver.c
22 install.c
23 interface.c
24 misc.c
25 parser.c
26 query.c
27 queue.c
28 setupcab.c
29 stringtable.c
30 stubs.c
31 rpc.c
32 setupapi_private.h
33 ${CMAKE_CURRENT_BINARY_DIR}/pnp_c.c)
34
35 add_library(setupapi SHARED
36 ${SOURCE}
37 setupapi.rc
38 ${CMAKE_CURRENT_BINARY_DIR}/setupapi_stubs.c
39 ${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
40
41 set_module_type(setupapi win32dll UNICODE)
42 target_link_libraries(setupapi uuid wine ${PSEH_LIB})
43 add_delay_importlibs(setupapi shell32 wintrust)
44
45 add_importlibs(setupapi
46 msvcrt
47 gdi32
48 comctl32
49 advapi32
50 user32
51 rpcrt4
52 version
53 kernel32
54 ntdll)
55
56 add_pch(setupapi setupapi_private.h SOURCE)
57 add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)