sync with trunk r49322
[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 spec2def(setupapi ${CMAKE_CURRENT_SOURCE_DIR}/setupapi.spec ${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
16
17 add_library(setupapi SHARED
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
36 set_module_type(setupapi win32dll)
37
38 target_link_libraries(setupapi
39 ${CMAKE_CURRENT_BINARY_DIR}/setupapi.def
40 pnp_client
41 uuid
42 wine
43 pseh)
44
45 add_importlibs(setupapi
46 msvcrt
47 gdi32
48 comctl32
49 advapi32
50 user32
51 rpcrt4
52 version
53 shell32
54 kernel32
55 ntdll)
56
57 add_dependencies(setupapi setupapi_def)
58 add_livecd_target(setupapi reactos/system32)