Skip to content

Commit

Permalink
cmake: add glew include dirs globally, because windows code uses glew…
Browse files Browse the repository at this point in the history
… from public headers
  • Loading branch information
vovkasm committed Jan 26, 2015
1 parent fc5023c commit 5d27da2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,14 @@ if(USE_PREBUILT_LIBS)
include(CocosUsePrebuiltLibs)
endif()

# GLFW3 used on Mac, Windows and Linux desktop platforms
# desktop platforms
if(LINUX OR MACOSX OR WINDOWS)
cocos_find_package(OpenGL OPENGL REQUIRED)

if(LINUX OR WINDOWS)
cocos_find_package(GLEW GLEW REQUIRED)
#TODO: implement correct schema for pass cocos2d specific requirements to projects
include_directories(${GLEW_INCLUDE_DIRS})
endif()

cocos_find_package(GLFW3 GLFW3 REQUIRED)
Expand Down

0 comments on commit 5d27da2

Please sign in to comment.