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