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