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