xref: /reactos/dll/win32/comdlg32/CMakeLists.txt (revision 8a978a17)
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    cdlg32.c
11    colordlg.c
12    filedlg.c
13    filedlg31.c
14    filedlgbrowser.c
15    finddlg.c
16    fontdlg.c
17    #itemdlg.c /* Win 7 */
18    printdlg.c
19    precomp.h
20    ${CMAKE_CURRENT_BINARY_DIR}/comdlg32_stubs.c)
21
22add_library(comdlg32 MODULE
23    ${SOURCE}
24    rsrc.rc
25    ${CMAKE_CURRENT_BINARY_DIR}/comdlg32.def)
26
27set_module_type(comdlg32 win32dll)
28target_link_libraries(comdlg32 uuid wine)
29add_delay_importlibs(comdlg32 ole32)
30add_importlibs(comdlg32 shell32 shlwapi comctl32 winspool user32 gdi32 advapi32 msvcrt kernel32 ntdll)
31add_pch(comdlg32 precomp.h SOURCE)
32add_cd_file(TARGET comdlg32 DESTINATION reactos/system32 FOR all)
33