[CMAKE]
[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_stubs.c
60 ${CMAKE_CURRENT_BINARY_DIR}/msi.def)
61
62 add_library(msi SHARED ${SOURCE})
63
64 add_idl_Headers(msi_idlheader msiserver.idl)
65
66 add_typelib(msi_tlb msiserver.idl)
67
68 set_module_type(msi win32dll)
69
70 target_link_libraries(msi uuid ${PSEH_LIB} wine)
71
72 add_dependencies(msi msi_idlheader msi_tlb)
73
74 add_importlibs(msi
75 advapi32
76 cabinet
77 comctl32
78 gdi32
79 odbccp32
80 ole32
81 oleaut32
82 shell32
83 shlwapi
84 urlmon
85 user32
86 version
87 wininet
88 msvcrt
89 kernel32
90 ntdll)
91
92 add_cab_target(msi 1)
93 add_importlib_target(msi.spec)