File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change 1414# compile the corresponding source files.
1515# For now hardcode for linux.
1616
17+ set (rglew_srcs src/gl.c)
1718set (rglew_libs OpenGL::GL)
1819
1920find_library (DL_LIBRARY_PATH dl)
@@ -22,24 +23,15 @@ if (DL_LIBRARY_PATH)
2223endif ()
2324
2425if (x11)
26+ list (APPEND rglew_srcs src/glx.c)
2527 list (APPEND rglew_libs ${X11_LIBRARIES} )
26- ROOT_LINKER_LIBRARY(RGlew
27- src/gl.c
28- src/glx.c
29- LIBRARIES
30- ${rglew_libs}
31- )
32- else ()
33- ROOT_LINKER_LIBRARY(RGlew
34- src/gl.c
35- # src/wgl.c
36- LIBRARIES
37- ${rglew_libs}
38- )
3928endif ()
4029
41- # Is this needed?
42- target_include_directories (RGlew PRIVATE ${CMAKE_SOURCE_DIR} /graf3d/rglew/inc/)
30+ if (MSVC )
31+ list (APPEND rglew_srcs src/wgl.c)
32+ endif ()
33+
34+ ROOT_LINKER_LIBRARY(RGlew ${rglew_srcs} LIBRARIES ${rglew_libs} )
4335
4436# We still need to install TGLIncludes.h into include/
4537ROOT_INSTALL_HEADERS()
You can’t perform that action at this time.
0 commit comments