21ddcfce6112834b0c3cad836f5d674184c66ce4
[reactos.git] / dll / win32 / msi / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
3 add_definitions(-D__WINESRC__)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 spec2def(msi.dll msi.spec)
9
10 generate_idl_iids(msiserver.idl)
11
12 list(APPEND SOURCE
13 action.c
14 alter.c
15 appsearch.c
16 automation.c
17 classes.c
18 cond.tab.c
19 create.c
20 custom.c
21 database.c
22 delete.c
23 dialog.c
24 distinct.c
25 drop.c
26 events.c
27 files.c
28 font.c
29 format.c
30 handle.c
31 helpers.c
32 insert.c
33 install.c
34 join.c
35 media.c
36 msi.c
37 msi_main.c
38 msiquery.c
39 package.c
40 preview.c
41 record.c
42 registry.c
43 regsvr.c
44 script.c
45 select.c
46 source.c
47 sql.tab.c
48 storages.c
49 streams.c
50 string.c
51 suminfo.c
52 table.c
53 tokenize.c
54 update.c
55 upgrade.c
56 where.c
57 msi.rc
58 ${CMAKE_CURRENT_BINARY_DIR}/msiserver_i.c
59 ${CMAKE_CURRENT_BINARY_DIR}/msi.def)
60
61 add_library(msi SHARED ${SOURCE})
62
63 add_idl_Headers(msi_idlheader msiserver.idl)
64
65 add_typelib(msi_tlb msiserver.idl)
66
67 set_module_type(msi win32dll)
68
69 target_link_libraries(msi uuid ${PSEH_LIB} wine)
70
71 add_dependencies(msi msi_idlheader msi_tlb)
72
73 add_importlibs(msi
74 advapi32
75 cabinet
76 comctl32
77 gdi32
78 odbccp32
79 ole32
80 oleaut32
81 shell32
82 shlwapi
83 urlmon
84 user32
85 version
86 wininet
87 msvcrt
88 kernel32
89 ntdll)
90
91 add_cab_target(msi 1)
92 add_importlib_target(msi.spec)