1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(oledlg.dll oledlg.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 insobjdlg.c 8 oledlg_main.c 9 pastespl.c 10 precomp.h) 11 12add_library(oledlg MODULE 13 ${SOURCE} 14 rsrc.rc 15 ${CMAKE_CURRENT_BINARY_DIR}/oledlg.def) 16 17set_module_type(oledlg win32dll) 18target_link_libraries(oledlg wine) 19add_importlibs(oledlg ole32 comdlg32 user32 advapi32 msvcrt kernel32 ntdll) 20add_pch(oledlg precomp.h SOURCE) 21add_cd_file(TARGET oledlg DESTINATION reactos/system32 FOR all) 22