1 2add_definitions(-D__WINESRC__) 3spec2def(fltlib.dll fltlib.spec ADD_IMPORTLIB) 4 5include_directories( 6 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/fltmgr 7 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine 8 includes) 9 10list(APPEND SOURCE 11 fltlib.c 12 message.c 13 stubs.c 14 ${CMAKE_CURRENT_BINARY_DIR}/fltlib.def) 15 16add_library(fltlib MODULE ${SOURCE} rsrc.rc) 17set_module_type(fltlib win32dll) 18target_link_libraries(fltlib wine) 19target_compile_definitions(fltlib PRIVATE NTDDI_VERSION=NTDDI_WS03SP1) 20add_importlibs(fltlib msvcrt kernel32 ntdll) 21add_cd_file(TARGET fltlib DESTINATION reactos/system32 FOR all) 22