[CMAKE]
[reactos.git] / dll / win32 / comdlg32 / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_WINE
5 -D_DLL -D__USE_CRTIMP)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 set_rc_compiler()
10
11 spec2def(comdlg32.dll comdlg32.spec)
12
13 list(APPEND SOURCE
14 cdlg32.c
15 colordlg.c
16 filedlg.c
17 filedlg31.c
18 filedlgbrowser.c
19 finddlg.c
20 fontdlg.c
21 printdlg.c
22 rsrc.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/comdlg32_stubs.c
24 ${CMAKE_CURRENT_BINARY_DIR}/comdlg32.def)
25
26 add_library(comdlg32 SHARED ${SOURCE})
27
28 set_module_type(comdlg32 win32dll)
29
30 target_link_libraries(comdlg32 uuid wine)
31
32 add_importlibs(comdlg32
33 shell32
34 shlwapi
35 comctl32
36 winspool
37 user32
38 gdi32
39 advapi32
40 ole32
41 msvcrt
42 kernel32
43 ntdll)
44
45 add_cd_file(TARGET comdlg32 DESTINATION reactos/system32 FOR all)
46 add_importlib_target(comdlg32.spec)