[SHELL32] Add IDD_LINK_PROBLEM and IDS_LINK_INVALID (#3037)
[reactos.git] / dll / directx / wine / ddraw / CMakeLists.txt
1
2 add_definitions(
3 -D__WINESRC__
4 -D__ROS_LONG64__
5 -DUSE_WIN32_OPENGL)
6
7 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
8
9 spec2def(ddraw.dll ddraw.spec ADD_IMPORTLIB)
10
11 list(APPEND SOURCE
12 clipper.c
13 ddraw.c
14 device.c
15 executebuffer.c
16 light.c
17 main.c
18 material.c
19 palette.c
20 surface.c
21 utils.c
22 vertexbuffer.c
23 viewport.c
24 precomp.h
25 ${CMAKE_CURRENT_BINARY_DIR}/ddraw_stubs.c)
26
27 if(MSVC)
28 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
29 #target_compile_options(ddraw PRIVATE "/FIwine/typeof.h")
30 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/FIwine/typeof.h")
31 endif()
32
33 add_library(ddraw MODULE
34 ${SOURCE}
35 ddraw.rc
36 ${CMAKE_CURRENT_BINARY_DIR}/ddraw.def)
37
38 set_module_type(ddraw win32dll)
39 target_link_libraries(ddraw wine uuid dxguid ${PSEH_LIB})
40 add_importlibs(ddraw advapi32 gdi32 user32 d3dwine msvcrt kernel32 ntdll)
41 add_dependencies(ddraw wineheaders)
42 add_pch(ddraw precomp.h SOURCE)
43 add_cd_file(TARGET ddraw DESTINATION reactos/system32 FOR all)