1 2add_definitions(-D__WINESRC__) 3include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(advpack.dll advpack.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 advpack.c 8 files.c 9 install.c 10 reg.c 11 precomp.h) 12 13add_library(advpack MODULE 14 ${SOURCE} 15 advpack.rc 16 ${CMAKE_CURRENT_BINARY_DIR}/advpack.def) 17 18set_module_type(advpack win32dll) 19target_link_libraries(advpack wine) 20add_importlibs(advpack ole32 setupapi version advapi32 msvcrt kernel32 ntdll) 21add_pch(advpack precomp.h SOURCE) 22add_cd_file(TARGET advpack DESTINATION reactos/system32 FOR all) 23