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