2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(-D__WINESRC__)
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2011-06-26 21:29:55 +00:00
|
|
|
spec2def(clusapi.dll clusapi.spec)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
clusapi.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/clusapi_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/clusapi.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(clusapi MODULE ${SOURCE})
|
2020-09-18 09:49:18 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
# error C4312: 'type cast': conversion from 'unsigned int' to 'HCLUSTER' of greater size
|
|
|
|
remove_target_compile_option(clusapi "/we4312")
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(clusapi win32dll)
|
|
|
|
target_link_libraries(clusapi wine)
|
|
|
|
add_importlibs(clusapi msvcrt kernel32 ntdll)
|
|
|
|
add_cd_file(TARGET clusapi DESTINATION reactos/system32 FOR all)
|