1 2add_definitions(-D__WINESRC__) 3 4remove_definitions(-DWINVER=0x502) 5add_definitions(-DWINVER=0x600) 6 7remove_definitions(-D_WIN32_WINNT=0x502) 8add_definitions(-D_WIN32_WINNT=0x600) 9 10include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) 11include_directories(${REACTOS_BINARY_DIR}/include/psdk) 12 13generate_idl_iids(mstask_local.idl) 14 15spec2def(mstask.dll mstask.spec) 16 17list(APPEND SOURCE 18 factory.c 19 mstask_main.c 20 task.c 21 task_scheduler.c 22 task_trigger.c 23 rsrc.rc 24 ${CMAKE_CURRENT_BINARY_DIR}/mstask_local_i.c 25 ${CMAKE_CURRENT_BINARY_DIR}/mstask_stubs.c 26 ${CMAKE_CURRENT_BINARY_DIR}/mstask.def) 27 28add_library(mstask SHARED ${SOURCE}) 29 30set_module_type(mstask win32dll) 31 32target_link_libraries(mstask uuid wine) 33 34add_importlibs(mstask ole32 msvcrt kernel32 ntdll) 35 36add_cab_target(mstask 1) 37