2017-01-13 00:06:12 +00:00
|
|
|
|
2020-05-18 19:38:56 +00:00
|
|
|
add_subdirectory(shlwapi_resource_dll)
|
|
|
|
|
|
|
|
# Ensure the resource compiler can find the dll
|
|
|
|
include_directories($<TARGET_FILE_DIR:shlwapi_resource_dll>)
|
|
|
|
|
2017-01-13 14:51:25 +00:00
|
|
|
list(APPEND SOURCE
|
2017-06-10 19:41:31 +00:00
|
|
|
PathFindOnPath.c
|
2017-01-13 14:51:25 +00:00
|
|
|
PathIsUNC.c
|
2017-01-13 21:55:25 +00:00
|
|
|
PathIsUNCServer.c
|
|
|
|
PathIsUNCServerShare.c
|
2017-01-13 14:51:25 +00:00
|
|
|
PathUnExpandEnvStrings.c
|
2018-06-22 14:44:58 +00:00
|
|
|
PathUnExpandEnvStringsForUser.c
|
2018-03-05 21:18:21 +00:00
|
|
|
SHAreIconsEqual.c
|
2020-05-18 19:38:56 +00:00
|
|
|
SHLoadIndirectString.c
|
2023-02-21 00:17:47 +00:00
|
|
|
SHLoadRegUIString.c
|
2023-07-25 09:19:22 +00:00
|
|
|
SHPropertyBag.cpp
|
2017-01-15 00:04:16 +00:00
|
|
|
StrFormatByteSizeW.c
|
2018-03-05 21:18:21 +00:00
|
|
|
testdata.rc
|
2017-01-13 14:51:25 +00:00
|
|
|
testlist.c)
|
|
|
|
|
2020-05-18 19:38:56 +00:00
|
|
|
# Add a dependency from the resource to the dll
|
|
|
|
add_rc_deps(testdata.rc ${CMAKE_CURRENT_BINARY_DIR}/shlwapi_resource_dll/shlwapi_resource_dll.dll)
|
|
|
|
|
2017-01-13 14:51:25 +00:00
|
|
|
add_executable(shlwapi_apitest ${SOURCE})
|
2017-01-13 00:06:12 +00:00
|
|
|
set_module_type(shlwapi_apitest win32cui)
|
2023-08-02 01:35:25 +00:00
|
|
|
target_link_libraries(shlwapi_apitest ${PSEH_LIB} uuid)
|
|
|
|
add_importlibs(shlwapi_apitest shlwapi oleaut32 ole32 user32 advapi32 msvcrt kernel32)
|
2020-05-18 19:38:56 +00:00
|
|
|
add_dependencies(shlwapi_apitest shlwapi_resource_dll)
|
2017-01-13 22:12:22 +00:00
|
|
|
add_rostests_file(TARGET shlwapi_apitest)
|