xref: /reactos/dll/win32/atl/CMakeLists.txt (revision 0f92924a)
1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x600)
4
5add_definitions(
6    -D__WINESRC__
7    -D_ATL_VER=_ATL_VER_30)
8
9include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
10spec2def(atl.dll atl.spec ADD_IMPORTLIB)
11
12if(MSVC)
13    # Disable warning C4477 (printf format warnings)
14    add_compile_flags("/wd4477")
15endif()
16
17list(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
25list(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
31set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${atl_rc_deps}")
32
33add_library(atl MODULE
34    ${SOURCE}
35    rsrc.rc
36    ${CMAKE_CURRENT_BINARY_DIR}/atl.def)
37
38add_typelib(atl_lib.idl)
39add_dependencies(atl stdole2)
40set_module_type(atl win32dll)
41target_link_libraries(atl uuid wine)
42add_importlibs(atl oleaut32 ole32 user32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll)
43add_pch(atl precomp.h SOURCE)
44add_cd_file(TARGET atl DESTINATION reactos/system32 FOR all)
45