Commit 63091715 authored by Thomas Eppers's avatar Thomas Eppers
Browse files

build glew in cmake instead of using the pre-build one form the build-deps script

parent 7390077c
......@@ -22,7 +22,6 @@ endif ()
#define symbols for project
add_definitions(-DGLM_SWIZZLE)
add_definitions(-DGLEW_STATIC)
find_package(OpenGL)
include_directories(
......@@ -47,10 +46,16 @@ FILE(GLOB_RECURSE clion_all_headers
)
#glew library
add_library(glew_static STATIC IMPORTED)
set_target_properties(glew_static PROPERTIES
IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/lib/glew/build/libGLEW.a
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib/glew/include
)
set(GLEW_SRC
${CMAKE_CURRENT_SOURCE_DIR}/lib/glew/src/glew.c
${CMAKE_CURRENT_SOURCE_DIR}/lib/glew/src/glewinfo.c
${CMAKE_CURRENT_SOURCE_DIR}/lib/glew/src/visualinfo.c
)
add_definitions(-DGLEW_STATIC)
add_library(glew_static ${GLEW_SRC})
FILE(GLOB_RECURSE Recast_cpp
${CMAKE_CURRENT_SOURCE_DIR}/lib/recastnavigation/Recast/*.cpp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment