mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +00:00
362af7d9dc
Fix oleaut32_winetest cmake build. svn path=/trunk/; revision=54815
41 lines
1.2 KiB
CMake
41 lines
1.2 KiB
CMake
|
|
add_definitions(
|
|
-D__ROS_LONG64__
|
|
-D_DLL -D__USE_CRTIMP)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
add_typelib(test_reg.idl test_tlb.idl tmarshal.idl)
|
|
|
|
add_idl_Headers(oleaut32_idlheaders test_reg.idl tmarshal.idl)
|
|
generate_idl_iids(tmarshal.idl)
|
|
|
|
list(APPEND SOURCE
|
|
dispatch.c
|
|
olefont.c
|
|
olepicture.c
|
|
safearray.c
|
|
testlist.c
|
|
tmarshal.c
|
|
tmarshal.rc
|
|
typelib.c
|
|
usrmarshal.c
|
|
varformat.c
|
|
vartest.c
|
|
vartype.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/tmarshal_i.c)
|
|
|
|
add_executable(oleaut32_winetest ${SOURCE})
|
|
target_link_libraries(oleaut32_winetest uuid wine)
|
|
set_module_type(oleaut32_winetest win32cui)
|
|
add_importlibs(oleaut32_winetest oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
|
|
SET(tmarshal.rc_DEPS
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_reg.tlb
|
|
${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
|
|
${CMAKE_CURRENT_BINARY_DIR}/tmarshal.tlb)
|
|
#doesn't work, only includes test_reg.tlb
|
|
#set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS ${tmarshal.rc_DEPS})
|
|
add_custom_target(oleaut32_typelibs ALL DEPENDS ${tmarshal.rc_DEPS})
|
|
|
|
add_dependencies(oleaut32_winetest oleaut32_typelibs oleaut32_idlheaders stdole2)
|
|
add_cd_file(TARGET oleaut32_winetest DESTINATION reactos/bin FOR all)
|