1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__ -D__ROS_LONG64__) 4spec2def(uxtheme.dll uxtheme.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 buffer.c 8 draw.c 9 main.c 10 metric.c 11 msstyles.c 12 ncscrollbar.c 13 nonclient.c 14 property.c 15 stylemap.c 16 system.c 17 themehooks.c 18 uxini.c 19 uxthemep.h 20 ${CMAKE_CURRENT_BINARY_DIR}/uxtheme_stubs.c) 21 22add_library(uxtheme MODULE 23 ${SOURCE} 24 version.rc 25 ${CMAKE_CURRENT_BINARY_DIR}/uxtheme.def) 26 27set_module_type(uxtheme win32dll) 28target_link_libraries(uxtheme wine) 29add_delay_importlibs(uxtheme msimg32) 30add_importlibs(uxtheme user32 advapi32 gdi32 msvcrt kernel32 ntdll) 31add_pch(uxtheme uxthemep.h SOURCE) 32add_cd_file(TARGET uxtheme DESTINATION reactos/system32 FOR all) 33