1
2add_definitions(
3    -D__WINESRC__
4    -Dstrcasecmp=_stricmp
5)
6
7list(APPEND SOURCE
8    devinst.c
9    dialog.c
10    diskspace.c
11    install.c
12    misc.c
13    parser.c
14    query.c
15    setupcab.c
16    stringtable.c
17    testlist.c)
18
19add_executable(setupapi_winetest ${SOURCE} setupapi.rc)
20set_module_type(setupapi_winetest win32cui)
21target_link_libraries(setupapi_winetest uuid)
22add_importlibs(setupapi_winetest advapi32 setupapi user32 shell32 msvcrt kernel32 ntdll)
23add_rostests_file(TARGET setupapi_winetest)
24
25if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
26    target_compile_options(setupapi_winetest PRIVATE -Wno-format-overflow)
27endif()
28