1 2add_definitions(-D__WINESRC__) 3 4remove_definitions(-D_WIN32_WINNT=0x502) 5add_definitions(-D_WIN32_WINNT=0x600) 6 7include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) 8 9add_idl_headers(atl_atliface_header atliface.idl) 10generate_idl_iids(atliface.idl) 11 12set_rc_compiler() 13spec2def(atl.dll atl.spec) 14 15list(APPEND SOURCE 16 atl_ax.c 17 atl_main.c 18 registrar.c 19 stubs.c 20 rsrc.rc 21 ${CMAKE_CURRENT_BINARY_DIR}/atliface_i.c 22 ${CMAKE_CURRENT_BINARY_DIR}/atl.def) 23 24add_library(atl SHARED ${SOURCE}) 25 26set_module_type(atl win32dll) 27 28target_link_libraries(atl uuid wine) 29 30add_importlibs(atl 31 msvcrt 32 ole32 33 oleaut32 34 user32 35 advapi32 36 gdi32 37 kernel32 38 ntdll) 39 40add_importlib_target(atl.spec) 41 42add_dependencies(atl atl_atliface_header) 43add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all) 44