[OPENGL]
[reactos.git] / reactos / dll / opengl / mesa / src / gallium / targets / libgl-gdi / CMakeLists.txt
1
2 # we link against C++ static libs
3 set_cpp()
4
5 include_directories(
6 ../../state_trackers/wgl
7 ../../winsys/sw
8 )
9
10 list(APPEND SOURCE
11 libgl_gdi.c)
12
13 # We don't need a specfile here, as opengl application link against opengl32
14 # and gallium is kind enough to provide good def files for both MSVC/mingw-w64 and mingw32
15 if(MSVC OR (ARCH MATCHES amd64))
16 list(APPEND SOURCE ../../state_trackers/wgl/opengl32.def)
17 else()
18 list(APPEND SOURCE ../../state_trackers/wgl/opengl32.mingw.def)
19 endif()
20
21 add_library(mesa32 SHARED ${SOURCE})
22
23 target_link_libraries(mesa32
24 gallium_wgl
25 gallium_ws_gdi
26 mesa_glapi
27 mesa_core
28 gallium_softpipe
29 gallium_core
30 mesa_glsl
31 )
32
33 set_module_type(mesa32 win32dll)
34
35 add_importlibs(mesa32 gdi32 user32 msvcrt ws2_32 kernel32 ntdll)
36
37 if(MSVC)
38 target_link_libraries(mesa32 oldnames)
39 endif()
40
41 add_dependencies(mesa32 psdk)
42 add_cd_file(TARGET mesa32 DESTINATION reactos/system32 FOR all)
43