1 2add_definitions(-D__WINESRC__) 3include_directories(BEFORE 4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine 5 ${REACTOS_BINARY_DIR}/dll/win32/netapi32) 6generate_idl_iids(mstask_local.idl) 7spec2def(mstask.dll mstask.spec) 8 9list(APPEND SOURCE 10 factory.c 11 mstask_main.c 12 task.c 13 task_scheduler.c 14 task_trigger.c 15 stubs.c 16 precomp.h 17 ${CMAKE_CURRENT_BINARY_DIR}/mstask_local_i.c 18 ${CMAKE_CURRENT_BINARY_DIR}/mstask_stubs.c) 19 20add_library(mstask MODULE 21 ${SOURCE} 22 rsrc.rc 23 ${CMAKE_CURRENT_BINARY_DIR}/mstask.def) 24 25set_module_type(mstask win32dll) 26target_link_libraries(mstask uuid wine) 27add_importlibs(mstask ole32 msvcrt kernel32 ntdll) 28add_dependencies(mstask netapi32) 29add_pch(mstask precomp.h SOURCE) 30add_cd_file(TARGET mstask DESTINATION reactos/system32 FOR all) 31