580e31c495bace9aa78d9bce7113dbeb85cfc6f3
[reactos.git] / reactos / dll / win32 / atl / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D_ATL_VER=_ATL_VER_30)
5
6 remove_definitions(-D_WIN32_WINNT=0x502)
7 add_definitions(-D_WIN32_WINNT=0x600)
8
9 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
10
11 spec2def(atl.dll atl.spec ADD_IMPORTLIB)
12
13 list(APPEND SOURCE
14 atl.c
15 atl30.c
16 atl_ax.c
17 registrar.c
18 precomp.h
19 ${CMAKE_CURRENT_BINARY_DIR}/atl_stubs.c
20 ${CMAKE_CURRENT_BINARY_DIR}/atl.def)
21
22 add_library(atl SHARED ${SOURCE} rsrc.rc)
23 set_module_type(atl win32dll)
24 target_link_libraries(atl uuid wine)
25 add_importlibs(atl oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
26 add_pch(atl precomp.h SOURCE)
27 add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all)