1 2add_definitions( 3 -D__WINESRC__ 4 -D_WINE 5 -D__ROS_LONG64__) 6 7include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 8spec2def(cryptui.dll cryptui.spec ADD_IMPORTLIB) 9 10list(APPEND SOURCE 11 main.c 12 ${CMAKE_CURRENT_BINARY_DIR}/cryptui_stubs.c 13 ${CMAKE_CURRENT_BINARY_DIR}/cryptui.def) 14 15add_library(cryptui MODULE ${SOURCE} cryptui.rc) 16set_module_type(cryptui win32dll) 17target_link_libraries(cryptui uuid wine oldnames) 18add_delay_importlibs(cryptui urlmon wintrust) 19add_importlibs(cryptui user32 ole32 crypt32 gdi32 advapi32 comctl32 comdlg32 msvcrt kernel32 ntdll) 20add_cd_file(TARGET cryptui DESTINATION reactos/system32 FOR all) 21