mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
FreeBSD cmake fixup for locating X11 include and lib
This commit is contained in:
parent
899d47a2f3
commit
44049b7de2
@ -42,9 +42,8 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|||||||
|
|
||||||
find_package (OpenGL REQUIRED)
|
find_package (OpenGL REQUIRED)
|
||||||
|
|
||||||
# X11 required when builing visualinfo and glewinfo,
|
# X11 required except for Windows and Apple OSX platforms
|
||||||
# but not for Windows or Apple OSX platforms
|
if (NOT WIN32 AND NOT APPLE)
|
||||||
if (BUILD_UTILS AND NOT WIN32 AND NOT APPLE)
|
|
||||||
find_package (X11)
|
find_package (X11)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -55,7 +54,7 @@ else ()
|
|||||||
set (DLL_PREFIX lib)
|
set (DLL_PREFIX lib)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES})
|
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES} ${X11_LIBRARIES})
|
||||||
|
|
||||||
add_definitions (-DGLEW_NO_GLU)
|
add_definitions (-DGLEW_NO_GLU)
|
||||||
|
|
||||||
@ -96,7 +95,7 @@ endif ()
|
|||||||
|
|
||||||
#### GLEW ####
|
#### GLEW ####
|
||||||
|
|
||||||
include_directories (${GLEW_DIR}/include)
|
include_directories (${GLEW_DIR}/include ${X11_INCLUDE_DIR})
|
||||||
|
|
||||||
set (GLEW_PUBLIC_HEADERS_FILES ${GLEW_DIR}/include/GL/wglew.h ${GLEW_DIR}/include/GL/glew.h ${GLEW_DIR}/include/GL/glxew.h)
|
set (GLEW_PUBLIC_HEADERS_FILES ${GLEW_DIR}/include/GL/wglew.h ${GLEW_DIR}/include/GL/glew.h ${GLEW_DIR}/include/GL/glxew.h)
|
||||||
set (GLEW_SRC_FILES ${GLEW_DIR}/src/glew.c)
|
set (GLEW_SRC_FILES ${GLEW_DIR}/src/glew.c)
|
||||||
|
Loading…
Reference in New Issue
Block a user