xref: /reactos/dll/win32/comdlg32/CMakeLists.txt (revision a1fc312a)
1
2add_definitions(
3    -D__WINESRC__
4    -D_WINE)
5
6include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7spec2def(comdlg32.dll comdlg32.spec ADD_IMPORTLIB)
8
9list(APPEND SOURCE
10    autocomp.cpp
11    cdlg32.c
12    colordlg.c
13    filedlg.c
14    filedlg31.c
15    filedlgbrowser.c
16    finddlg.c
17    fontdlg.c
18    #itemdlg.c /* Win 7 */
19    printdlg.c
20    precomp.h
21    ${CMAKE_CURRENT_BINARY_DIR}/comdlg32_stubs.c)
22
23add_library(comdlg32 MODULE
24    ${SOURCE}
25    rsrc.rc
26    ${CMAKE_CURRENT_BINARY_DIR}/comdlg32.def)
27
28set_module_type(comdlg32 win32dll)
29target_link_libraries(comdlg32 uuid wine)
30add_delay_importlibs(comdlg32 ole32)
31add_importlibs(comdlg32 shell32 shlwapi comctl32 winspool user32 gdi32 advapi32 msvcrt kernel32 ntdll)
32add_pch(comdlg32 precomp.h SOURCE)
33add_cd_file(TARGET comdlg32 DESTINATION reactos/system32 FOR all)
34