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) 11 12generate_idl_iids(mstask_local.idl) 13 14spec2def(mstask.dll mstask.spec) 15 16list(APPEND SOURCE 17 factory.c 18 mstask_main.c 19 task.c 20 task_scheduler.c 21 task_trigger.c 22 rsrc.rc 23 ${CMAKE_CURRENT_BINARY_DIR}/mstask_local_i.c 24 ${CMAKE_CURRENT_BINARY_DIR}/mstask_stubs.c 25 ${CMAKE_CURRENT_BINARY_DIR}/mstask.def) 26 27add_library(mstask SHARED ${SOURCE}) 28 29set_module_type(mstask win32dll) 30 31target_link_libraries(mstask uuid wine) 32 33add_importlibs(mstask ole32 msvcrt kernel32 ntdll) 34 35add_cab_target(mstask 1) 36