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