[CRT] Remove useless #undef abort from process.h
[reactos.git] / dll / win32 / atl / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(
6 -D__WINESRC__
7 -D_ATL_VER=_ATL_VER_30)
8
9 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
10 spec2def(atl.dll atl.spec ADD_IMPORTLIB)
11
12 if(MSVC)
13 # Disable warning C4477 (printf format warnings)
14 add_compile_flags("/wd4477")
15 endif()
16
17 list(APPEND SOURCE
18 atl.c
19 atl30.c
20 atl_ax.c
21 registrar.c
22 ${CMAKE_CURRENT_BINARY_DIR}/atl_stubs.c
23 precomp.h)
24
25 list(APPEND atl_rc_deps
26 ${CMAKE_CURRENT_SOURCE_DIR}/atl.rgs
27 ${CMAKE_CURRENT_SOURCE_DIR}/atl_lib_r.rgs
28 ${CMAKE_CURRENT_SOURCE_DIR}/atl_lib_t.rgs
29 ${CMAKE_CURRENT_BINARY_DIR}/atl_lib.tlb)
30
31 set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${atl_rc_deps}")
32
33 add_library(atl MODULE
34 ${SOURCE}
35 rsrc.rc
36 ${CMAKE_CURRENT_BINARY_DIR}/atl.def)
37
38 add_typelib(atl_lib.idl)
39 add_dependencies(atl stdole2)
40 set_module_type(atl win32dll)
41 target_link_libraries(atl uuid wine)
42 add_importlibs(atl oleaut32 ole32 user32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll)
43 add_pch(atl precomp.h SOURCE)
44 add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all)