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