[CMAKE]
[reactos.git] / dll / win32 / opengl32 / CMakeLists.txt
1
2 set_unicode()
3
4 add_definitions(-D_DLL -D__USE_CRTIMP)
5
6 spec2def(opengl32.dll opengl32.spec)
7
8 list(APPEND SOURCE
9 font.c
10 gl.c
11 opengl32.c
12 wgl.c
13 ${CMAKE_CURRENT_BINARY_DIR}/opengl32_stubs.c
14 ${CMAKE_CURRENT_BINARY_DIR}/opengl32.def)
15
16 add_library(opengl32 SHARED
17 ${CMAKE_CURRENT_BINARY_DIR}/opengl32_opengl32.h.gch
18 ${SOURCE})
19
20 set_module_type(opengl32 win32dll)
21
22 add_importlibs(opengl32
23 msvcrt
24 gdi32
25 user32
26 advapi32
27 glu32
28 kernel32
29 ntdll)
30
31 add_pch(opengl32 ${CMAKE_CURRENT_SOURCE_DIR}/opengl32.h ${SOURCE})
32
33 add_cd_file(TARGET opengl32 DESTINATION reactos/system32 FOR all)
34 add_importlib_target(opengl32.spec)