[INETCPL] Sync with Wine Staging 3.17. CORE-15127
[reactos.git] / dll / cpl / inetcpl / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4 spec2def(inetcpl.cpl inetcpl.spec)
5
6 list(APPEND SOURCE
7 connections.c
8 content.c
9 general.c
10 inetcpl.c
11 security.c
12 precomp.h)
13
14 file(GLOB inetcpl_rc_deps resources/*.*)
15 add_rc_deps(inetcpl.rc ${inetcpl_rc_deps})
16
17 add_library(inetcpl SHARED
18 ${SOURCE}
19 inetcpl.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/inetcpl_stubs.c
21 ${CMAKE_CURRENT_BINARY_DIR}/inetcpl.def)
22
23 set_module_type(inetcpl cpl UNICODE)
24 target_link_libraries(inetcpl wine)
25 add_delay_importlibs(inetcpl cryptui wininet ole32 urlmon shell32)
26 add_importlibs(inetcpl advapi32 comctl32 user32 shlwapi msvcrt kernel32 ntdll)
27 add_pch(inetcpl precomp.h SOURCE)
28 add_cd_file(TARGET inetcpl DESTINATION reactos/system32 FOR all)