[MSI_WINETEST] Fix MSVC_IDE build. (#564)
[reactos.git] / modules / rostests / winetests / msi / CMakeLists.txt
1
2 add_definitions(
3 -DUSE_WINE_TODOS
4 -D__WINESRC__)
5
6 if(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>)
9 endif()
10
11 spec2def(custom.dll custom.spec)
12 add_library(custom SHARED custom.c ${CMAKE_CURRENT_BINARY_DIR}/custom.def)
13 target_link_libraries(custom uuid)
14 set_module_type(custom win32dll)
15 add_importlibs(custom msi ole32 msvcrt kernel32)
16
17 list(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
31 add_executable(msi_winetest ${SOURCE} testlist.c msi_winetest.rc)
32 target_link_libraries(msi_winetest uuid)
33 set_module_type(msi_winetest win32cui)
34 add_importlibs(msi_winetest cabinet msi shell32 ole32 oleaut32 user32 advapi32 version msvcrt kernel32)
35 add_pch(msi_winetest precomp.h SOURCE)
36 add_rostests_file(TARGET msi_winetest)
37 add_dependencies(msi_winetest custom)