xref: /reactos/dll/win32/hlink/CMakeLists.txt (revision 84344399)
1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(hlink.dll hlink.spec ADD_IMPORTLIB)
5
6list(APPEND SOURCE
7    browse_ctx.c
8    extserv.c
9    hlink_main.c
10    link.c)
11
12list(APPEND PCH_SKIP_SOURCE
13    ${CMAKE_CURRENT_BINARY_DIR}/hlink_stubs.c)
14
15add_library(hlink MODULE
16    ${SOURCE}
17    ${PCH_SKIP_SOURCE}
18    hlink.rc
19    ${CMAKE_CURRENT_BINARY_DIR}/hlink.def)
20
21set_module_type(hlink win32dll)
22target_link_libraries(hlink uuid wine oldnames)
23add_delay_importlibs(hlink urlmon)
24add_importlibs(hlink shell32 ole32 advapi32 msvcrt kernel32 ntdll)
25add_pch(hlink precomp.h "${PCH_SKIP_SOURCE}")
26add_cd_file(TARGET hlink DESTINATION reactos/system32 FOR all)
27