697643803a021e8d112f1936134c17af1a356b1f
[reactos.git] / dll / win32 / atl / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 add_idl_headers(atl_atliface_header atliface.idl)
10 generate_idl_iids(atliface.idl)
11
12 set_rc_compiler()
13 spec2def(atl.dll atl.spec)
14
15 list(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
24 add_library(atl SHARED ${SOURCE})
25
26 set_module_type(atl win32dll)
27
28 target_link_libraries(atl uuid wine)
29
30 add_importlibs(atl
31 msvcrt
32 ole32
33 oleaut32
34 user32
35 advapi32
36 gdi32
37 kernel32
38 ntdll)
39
40 add_importlib_target(atl.spec)
41
42 add_dependencies(atl atl_atliface_header)
43 add_cd_file(TARGET atl DESTINATION reactos/system32)