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