1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(clusapi.dll clusapi.spec) 5 6list(APPEND SOURCE 7 clusapi.c 8 ${CMAKE_CURRENT_BINARY_DIR}/clusapi_stubs.c 9 ${CMAKE_CURRENT_BINARY_DIR}/clusapi.def) 10 11add_library(clusapi MODULE ${SOURCE}) 12 13if(MSVC) 14 # error C4312: 'type cast': conversion from 'unsigned int' to 'HCLUSTER' of greater size 15 remove_target_compile_option(clusapi "/we4312") 16endif() 17 18set_module_type(clusapi win32dll) 19target_link_libraries(clusapi wine) 20add_importlibs(clusapi msvcrt kernel32 ntdll) 21add_cd_file(TARGET clusapi DESTINATION reactos/system32 FOR all) 22