include_directories(..) list(APPEND SOURCE data.c disk.c diskwmi.c enum.c geometry.c part.c pnp.c) add_library(disk_new SHARED ${SOURCE} disk.rc) target_link_libraries(disk_new libcntpr wdmguid) if(ARCH STREQUAL "i386") # FIXME: http://www.cmake.org/Bug/view.php?id=12998 if(NOT MSVC) #add_target_compile_flags(disk_new "-Wno-error -Wno-format -Wno-pointer-sign") set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -Wno-format -Wno-pointer-sign") endif() endif() set_module_type(disk_new kernelmodedriver) add_importlibs(disk_new classpnp ntoskrnl hal) add_cd_file(TARGET disk_new DESTINATION reactos/system32/drivers NO_CAB FOR all)