1
2add_definitions(
3    -DUSE_WINE_TODOS
4    -D__WINESRC__)
5
6if(MSVC_IDE)
7    # msi_winetest.rc: let rc.exe find custom.dll in its subdirectory, i.e. Debug.
8    include_directories($<TARGET_FILE_DIR:custom>)
9endif()
10
11spec2def(custom.dll custom.spec)
12add_library(custom MODULE custom.c ${CMAKE_CURRENT_BINARY_DIR}/custom.def)
13target_link_libraries(custom uuid)
14set_module_type(custom win32dll)
15add_importlibs(custom msi ole32 msvcrt kernel32)
16
17list(APPEND SOURCE
18    action.c
19    automation.c
20    db.c
21    format.c
22    install.c
23    msi.c
24    package.c
25    patch.c
26    record.c
27    source.c
28    suminfo.c
29    precomp.h)
30
31add_executable(msi_winetest ${SOURCE} testlist.c msi_winetest.rc)
32target_link_libraries(msi_winetest uuid)
33set_module_type(msi_winetest win32cui)
34add_importlibs(msi_winetest cabinet msi shell32 ole32 oleaut32 user32 advapi32 version msvcrt kernel32)
35add_pch(msi_winetest precomp.h SOURCE)
36add_rostests_file(TARGET msi_winetest)
37add_dependencies(msi_winetest custom)
38