1 ##############################################################################
5 ${CMAKE_CURRENT_BINARY_DIR}
6 ${CMAKE_CURRENT_SOURCE_DIR}
10 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp
11 COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glproc.py > ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp
15 ${CMAKE_SOURCE_DIR}/specs/wglapi.py
16 ${CMAKE_SOURCE_DIR}/specs/glxapi.py
17 ${CMAKE_SOURCE_DIR}/specs/cglapi.py
18 ${CMAKE_SOURCE_DIR}/specs/eglapi.py
19 ${CMAKE_SOURCE_DIR}/specs/glesapi.py
20 ${CMAKE_SOURCE_DIR}/specs/glapi.py
21 ${CMAKE_SOURCE_DIR}/specs/gltypes.py
22 ${CMAKE_SOURCE_DIR}/specs/stdapi.py
26 # Wrap glproc.hpp as a target to prevent the command from being executed
27 # multiple times simulatenously, when the targets that depend on it are built
29 add_custom_target (glproc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp)
32 add_library (glproc_gl STATIC EXCLUDE_FROM_ALL
36 add_dependencies (glproc_gl glproc)
38 set_target_properties (glproc_gl PROPERTIES
39 # Ensure it can be statically linked in shared libraries
40 COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
44 add_library (glproc_egl STATIC EXCLUDE_FROM_ALL
48 add_dependencies (glproc_egl glproc)
50 set_target_properties (glproc_egl PROPERTIES
51 # Ensure it can be statically linked in shared libraries
52 COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"