reactos/dll/win32/shlwapi/CMakeLists.txt
Katayama Hirofumi MZ f496a5fc4f
[SHLWAPI] 1/3-implement SHAutoComplete (#3230)
Retrial of #3214. Try to implment shlwapi!SHAutoComplete function. Unfinished. CORE-9281
2020-09-27 15:27:18 +09:00

50 lines
1.2 KiB
CMake

project(SHELL)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(
-D__WINESRC__
-D_SHLWAPI_
-D_ATL_NO_EXCEPTIONS)
set_cpp(WITH_RUNTIME)
include_directories(BEFORE
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
${REACTOS_SOURCE_DIR}/sdk/lib/atl)
spec2def(shlwapi.dll shlwapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
assoc.c
clist.c
istream.c
msgbox.c
ordinal.c
path.c
reg.c
regstream.c
rosordinal.c
shlwapi_main.c
stopwatch.c
string.c
thread.c
url.c)
list(APPEND PCH_SKIP_SOURCE
autocomp.cpp
wsprintf.c
${CMAKE_CURRENT_BINARY_DIR}/shlwapi_stubs.c)
add_library(shlwapi MODULE
${SOURCE}
${PCH_SKIP_SOURCE}
shlwapi.rc
${CMAKE_CURRENT_BINARY_DIR}/shlwapi.def)
set_module_type(shlwapi win32dll UNICODE)
target_link_libraries(shlwapi uuid wine)
add_delay_importlibs(shlwapi userenv oleaut32 ole32 comdlg32 mpr mlang urlmon shell32 winmm version)
add_importlibs(shlwapi user32 gdi32 advapi32 wininet msvcrt kernel32 ntdll)
add_pch(shlwapi precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET shlwapi DESTINATION reactos/system32 FOR all)