mirror of
https://github.com/nigels-com/glew.git
synced 2025-04-20 23:52:55 +00:00
Update CMakeLists.txt
some .h files don't exist anymore. using target_include_directories as a catch all then it'll just search that directory for the .h files.
This commit is contained in:
parent
d952348fbf
commit
a597b1237c
@ -120,14 +120,15 @@ endif ()
|
||||
|
||||
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_SRC_FILES ${GLEW_DIR}/src/glew.c)
|
||||
|
||||
if (WIN32)
|
||||
list (APPEND GLEW_SRC_FILES ${GLEW_DIR}/build/glew.rc)
|
||||
endif ()
|
||||
|
||||
add_library (glew SHARED ${GLEW_PUBLIC_HEADERS_FILES} ${GLEW_SRC_FILES})
|
||||
add_library (glew SHARED ${GLEW_SRC_FILES})
|
||||
target_include_directories(glew ${GLEW_DIR}/src/)
|
||||
|
||||
set_target_properties (glew PROPERTIES COMPILE_DEFINITIONS "GLEW_BUILD" OUTPUT_NAME "${GLEW_LIB_NAME}" PREFIX "${DLL_PREFIX}"
|
||||
VERSION ${GLEW_VERSION}
|
||||
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR})
|
||||
|
Loading…
Reference in New Issue
Block a user