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