* Sync the recent cmake branch changes.
[reactos.git] / dll / win32 / shlwapi / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
3 add_definitions(-D__WINESRC__)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 spec2def(shlwapi.dll shlwapi.spec)
9
10 list(APPEND SOURCE
11 assoc.c
12 clist.c
13 istream.c
14 msgbox.c
15 ordinal.c
16 path.c
17 reg.c
18 regstream.c
19 shlwapi_main.c
20 stopwatch.c
21 string.c
22 thread.c
23 url.c
24 wsprintf.c
25 shlwapi.rc
26 ${CMAKE_CURRENT_BINARY_DIR}/shlwapi_stubs.c
27 ${CMAKE_CURRENT_BINARY_DIR}/shlwapi.def)
28
29 add_library(shlwapi SHARED ${SOURCE})
30
31 set_module_type(shlwapi win32dll)
32
33 target_link_libraries(shlwapi wine uuid)
34
35 add_importlibs(shlwapi
36 user32
37 gdi32
38 advapi32
39 oleaut32
40 ole32
41 comctl32
42 comdlg32
43 mpr
44 mlang
45 urlmon
46 winmm
47 version
48 shell32
49 kernel32
50 userenv
51 wininet
52 msvcrt
53 ntdll)
54
55 add_cd_file(TARGET shlwapi DESTINATION reactos/system32 FOR all)
56
57 add_importlib_target(shlwapi.spec)