892a4ac1f640fcee24760219df80e6078dfa7adf
[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
14 set_rc_compiler()
15
16 spec2def(setupapi.dll setupapi.spec ADD_IMPORTLIB)
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 ${CMAKE_CURRENT_BINARY_DIR}/pnp_c.c)
39
40 add_library(setupapi SHARED ${SOURCE})
41 set_module_type(setupapi win32dll UNICODE)
42 target_link_libraries(setupapi uuid wine ${PSEH_LIB})
43 add_delay_importlibs(setupapi shell32)
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)
57 add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)
58