2010-12-24 12:09:01 +00:00
|
|
|
|
2019-01-29 12:19:12 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-DUSE_WINE_TODOS
|
|
|
|
-DWINETEST_USE_DBGSTR_LONGLONG
|
|
|
|
-D_USE_MATH_DEFINES)
|
|
|
|
|
2016-04-20 12:39:37 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-01-03 11:38:21 +00:00
|
|
|
add_typelib(test_reg.idl test_tlb.idl tmarshal.idl)
|
2014-04-24 15:13:22 +00:00
|
|
|
add_idl_Headers(oleaut32_idlheaders test_reg.idl test_tlb.idl tmarshal.idl)
|
|
|
|
generate_idl_iids(test_reg.idl test_tlb.idl tmarshal.idl)
|
2010-12-24 12:09:01 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
dispatch.c
|
|
|
|
olefont.c
|
|
|
|
olepicture.c
|
|
|
|
safearray.c
|
|
|
|
tmarshal.c
|
|
|
|
typelib.c
|
|
|
|
usrmarshal.c
|
|
|
|
varformat.c
|
|
|
|
vartest.c
|
|
|
|
vartype.c
|
2012-12-12 15:05:13 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_reg_i.c
|
2014-04-24 15:13:22 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_tlb_i.c
|
2017-12-20 12:21:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/tmarshal_i.c
|
|
|
|
precomp.h)
|
2010-12-24 12:09:01 +00:00
|
|
|
|
2013-09-26 14:00:56 +00:00
|
|
|
set(tmarshal.rc_DEPS
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_reg.tlb
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/tmarshal.tlb)
|
2012-06-08 18:08:11 +00:00
|
|
|
|
|
|
|
set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS "${tmarshal.rc_DEPS}")
|
2017-12-20 12:21:11 +00:00
|
|
|
add_executable(oleaut32_winetest ${SOURCE} testlist.c tmarshal.rc)
|
2013-09-26 14:00:56 +00:00
|
|
|
target_link_libraries(oleaut32_winetest uuid)
|
|
|
|
set_module_type(oleaut32_winetest win32cui)
|
2014-04-24 15:13:22 +00:00
|
|
|
add_importlibs(oleaut32_winetest oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32)
|
2014-10-17 23:29:24 +00:00
|
|
|
|
2014-04-24 15:13:22 +00:00
|
|
|
if(MSVC)
|
|
|
|
add_importlibs(oleaut32_winetest ntdll)
|
|
|
|
endif()
|
2014-10-17 23:29:24 +00:00
|
|
|
|
2014-10-06 18:24:38 +00:00
|
|
|
add_dependencies(oleaut32_winetest stdole2 oleaut32_idlheaders)
|
2017-12-20 12:21:11 +00:00
|
|
|
add_pch(oleaut32_winetest precomp.h SOURCE)
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET oleaut32_winetest)
|