1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions( 6 -D__WINESRC__ 7 -D_ATL_VER=_ATL_VER_30) 8 9include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 10spec2def(atl.dll atl.spec ADD_IMPORTLIB) 11 12list(APPEND SOURCE 13 atl.c 14 atl30.c 15 atl_ax.c 16 registrar.c 17 ${CMAKE_CURRENT_BINARY_DIR}/atl_stubs.c 18 precomp.h) 19 20list(APPEND atl_rc_deps 21 ${CMAKE_CURRENT_SOURCE_DIR}/atl.rgs 22 ${CMAKE_CURRENT_SOURCE_DIR}/atl_lib_r.rgs 23 ${CMAKE_CURRENT_SOURCE_DIR}/atl_lib_t.rgs 24 ${CMAKE_CURRENT_BINARY_DIR}/atl_lib.tlb) 25 26set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${atl_rc_deps}") 27 28add_library(atl SHARED 29 ${SOURCE} 30 rsrc.rc 31 ${CMAKE_CURRENT_BINARY_DIR}/atl.def) 32 33add_typelib(atl_lib.idl) 34add_dependencies(atl stdole2) 35set_module_type(atl win32dll) 36target_link_libraries(atl uuid wine) 37add_importlibs(atl oleaut32 ole32 user32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll) 38add_pch(atl precomp.h SOURCE) 39add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all) 40