Skip to content

Instantly share code, notes, and snippets.

@ifree
Created January 6, 2015 05:29
Show Gist options
  • Select an option

  • Save ifree/0200f13ab8308d9b93e2 to your computer and use it in GitHub Desktop.

Select an option

Save ifree/0200f13ab8308d9b93e2 to your computer and use it in GitHub Desktop.
glconfig
cmake_minimum_required(VERSION 2.8.5)
set(PROJECT_NAME, gl_playground)
#libs
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(GLEW REQUIRED glew)
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
PKG_SEARCH_MODULE(SDL2_image REQUIRED SDL2_image)
PKG_SEARCH_MODULE(GL REQUIRED gl)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/local/lib/cmake)
find_package(GLM REQUIRED)
if(NOT GLM_FOUND)
message("glm not found")
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment