[CMAKE]
[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.def)
37
38 add_library(setupapi SHARED ${SOURCE})
39
40 set_module_type(setupapi win32dll)
41
42 target_link_libraries(setupapi
43 pnp_client
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
61 add_cab_target(setupapi 1)
62 add_importlib_target(setupapi.spec)