File tree Expand file tree Collapse file tree 9 files changed +6116
-1
lines changed Expand file tree Collapse file tree 9 files changed +6116
-1
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,17 @@ set(SRCS
5
5
add_library (glad ${SRCS} )
6
6
target_include_directories (glad PRIVATE "${CMAKE_CURRENT_SOURCE_DIR} /include" )
7
7
target_include_directories (glad INTERFACE "${CMAKE_CURRENT_SOURCE_DIR} /include" )
8
- target_link_libraries (glad Threads::Threads "${CMAKE_DL_LIBS} " )
8
+ target_link_libraries (glad PRIVATE Threads::Threads "${CMAKE_DL_LIBS} " )
9
+
10
+ if (WIN32 )
11
+ target_sources (glad PRIVATE src/glad_wgl.c )
12
+ else ()
13
+ if (USE_EGL )
14
+ target_sources (glad PRIVATE src/glad_egl.c )
15
+ target_link_libraries (glad PRIVATE EGL::EGL )
16
+ endif ()
17
+ if (USE_GLX )
18
+ target_sources (glad PRIVATE src/glad_glx.c )
19
+ target_link_options (glad PRIVATE OpenGL::GLX )
20
+ endif ()
21
+ endif ()
Original file line number Diff line number Diff line change 36
36
</ItemGroup >
37
37
<ItemGroup >
38
38
<ClCompile Include =" src\glad.c" />
39
+ <ClCompile Include =" src\glad_wgl.c" />
39
40
</ItemGroup >
40
41
<ItemGroup >
41
42
<ClInclude Include =" include\glad.h" />
43
+ <ClInclude Include =" include\glad_wgl.h" />
42
44
<ClInclude Include =" include\khrplatform.h" />
43
45
</ItemGroup >
44
46
<PropertyGroup Label =" Globals" >
Original file line number Diff line number Diff line change 2
2
<Project ToolsVersion =" 4.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
<ItemGroup >
4
4
<ClCompile Include =" src\glad.c" />
5
+ <ClCompile Include =" src\glad_wgl.c" />
5
6
</ItemGroup >
6
7
<ItemGroup >
7
8
<ClInclude Include =" include\khrplatform.h" />
8
9
<ClInclude Include =" include\glad.h" />
10
+ <ClInclude Include =" include\glad_wgl.h" />
9
11
</ItemGroup >
10
12
</Project >
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments