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