xref: /reactos/dll/win32/shlwapi/CMakeLists.txt (revision ebaf247c)
1
2project(SHELL)
3
4remove_definitions(-D_WIN32_WINNT=0x502)
5add_definitions(-D_WIN32_WINNT=0x600)
6
7add_definitions(
8    -D__WINESRC__
9    -D_SHLWAPI_)
10
11include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
12spec2def(shlwapi.dll shlwapi.spec ADD_IMPORTLIB)
13
14list(APPEND SOURCE
15    assoc.c
16    clist.c
17    istream.c
18    msgbox.c
19    ordinal.c
20    path.c
21    reg.c
22    regstream.c
23    rosordinal.c
24    shlwapi_main.c
25    stopwatch.c
26    string.c
27    thread.c
28    url.c
29    precomp.h)
30
31add_library(shlwapi MODULE
32    ${SOURCE}
33    shlwapi.rc
34    wsprintf.c
35    ${CMAKE_CURRENT_BINARY_DIR}/shlwapi_stubs.c
36    ${CMAKE_CURRENT_BINARY_DIR}/shlwapi.def)
37
38set_module_type(shlwapi win32dll)
39target_link_libraries(shlwapi uuid wine)
40add_delay_importlibs(shlwapi userenv oleaut32 ole32 comdlg32 mpr mlang urlmon shell32 winmm version)
41add_importlibs(shlwapi user32 gdi32 advapi32 wininet msvcrt kernel32 ntdll)
42add_pch(shlwapi precomp.h SOURCE)
43add_cd_file(TARGET shlwapi DESTINATION reactos/system32 FOR all)
44