[3RDPARTY] Suppress MSVC printf format warnings in 3rd-party code
[reactos.git] / dll / win32 / comctl32 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_WINE
5 -D_COMCTL32_)
6
7 remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
8 add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
9
10 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
11 spec2def(comctl32.dll comctl32.spec ADD_IMPORTLIB)
12
13 if(MSVC)
14 # Disable warning C4477 (printf format warnings)
15 add_compile_flags("/wd4477")
16 endif()
17
18 list(APPEND SOURCE
19 animate.c
20 button.c
21 combo.c
22 comboex.c
23 comctl32undoc.c
24 commctrl.c
25 datetime.c
26 dpa.c
27 draglist.c
28 dsa.c
29 edit.c
30 flatsb.c
31 header.c
32 hotkey.c
33 imagelist.c
34 ipaddress.c
35 listbox.c
36 listview.c
37 monthcal.c
38 nativefont.c
39 pager.c
40 progress.c
41 propsheet.c
42 rebar.c
43 smoothscroll.c
44 static.c
45 status.c
46 string.c
47 syslink.c
48 tab.c
49 taskdialog.c
50 theme_scrollbar.c
51 theming.c
52 toolbar.c
53 tooltips.c
54 trackbar.c
55 treeview.c
56 updown.c
57 precomp.h)
58
59 add_library(comctl32 MODULE
60 ${SOURCE}
61 stubs.c
62 rsrc.rc
63 ${CMAKE_CURRENT_BINARY_DIR}/comctl32.def)
64
65 set_module_type(comctl32 win32dll UNICODE)
66 target_link_libraries(comctl32 uuid wine ${PSEH_LIB})
67 add_delay_importlibs(comctl32 winmm uxtheme)
68 add_importlibs(comctl32 user32 gdi32 advapi32 usp10 imm32 msvcrt kernel32 ntdll)
69 add_pch(comctl32 precomp.h SOURCE)
70 add_cd_file(TARGET comctl32 DESTINATION reactos/system32 FOR all)
71 add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef FOR all)
72 add_cd_file(TARGET comctl32 DESTINATION reactos/winsxs/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef FOR all)
73 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.2600.2982_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
74 add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)