xref: /reactos/dll/shellext/fontext/CMakeLists.txt (revision 177ae91b)
1
2add_definitions(
3    -D_ATL_NO_EXCEPTIONS)
4
5remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
6add_definitions(-D_WIN32_WINNT=0x601 -DWINVER=0x601)
7
8set_cpp(WITH_RUNTIME)
9
10spec2def(fontext.dll fontext.spec)
11
12include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
13
14list(APPEND SOURCE
15    CDataObject.cpp
16    CEnumFonts.cpp
17    CFontCache.cpp
18    CFontCache.hpp
19    CFontExt.cpp
20    CFontExt.hpp
21    CFontMenu.cpp
22    fontext.cpp
23    fontpidl.cpp
24    fontpidl.hpp
25    precomp.h
26    resource.h)
27
28add_library(fontext MODULE
29    ${SOURCE}
30    fontext.rc
31    fontext.spec
32    ${CMAKE_CURRENT_BINARY_DIR}/fontext.def)
33
34set_module_type(fontext win32dll UNICODE)
35target_link_libraries(fontext uuid wine)
36add_delay_importlibs(fontext ole32 oleaut32 shlwapi gdi32)
37add_importlibs(fontext shell32 advapi32 user32 msvcrt kernel32 ntdll)
38add_pch(fontext precomp.h SOURCE)
39add_cd_file(TARGET fontext DESTINATION reactos/system32 FOR all)
40