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