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