[ADVPACK]: Addendum to r71977: Add the resource file into the CMakeList.
[reactos.git] / reactos / dll / win32 / advpack / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4 spec2def(advpack.dll advpack.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 advpack.c
8 files.c
9 install.c
10 reg.c
11 advpack_private.h)
12
13 add_library(advpack SHARED
14 ${SOURCE}
15 advpack.rc
16 ${CMAKE_CURRENT_BINARY_DIR}/advpack.def)
17
18 set_module_type(advpack win32dll)
19 target_link_libraries(advpack wine)
20 add_importlibs(advpack ole32 setupapi version advapi32 msvcrt kernel32 ntdll)
21 add_pch(advpack advpack_private.h SOURCE)
22 add_cd_file(TARGET advpack DESTINATION reactos/system32 FOR all)