From 1405c1b7c42d26cfeeee8e08a44bd0e2ef2906b7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 17 Dec 2015 15:46:53 -0500 Subject: Updated CMakeLists.txt so that it can find GLFW3 with pkg-config` --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0af1fa2..9e0bd52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,18 +21,20 @@ elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") endif() endif() +find_package(PkgConfig) + # Look up SDL2 and add the include directory to our include path find_package(OpenGL REQUIRED) find_package(GLEW REQUIRED) -find_package(GLFW REQUIRED) +pkg_check_modules(GLFW REQUIRED glfw3) find_package(portaudio REQUIRED) find_package(libsndfile REQUIRED) find_package(libxml2 REQUIRED) set(ALL_LIBS - ${OPENGL_LIBRARY} - ${GLEW_LIBRARY} - ${GLFW_LIBRARY} + ${OPENGL_LIBRARIES} + ${GLEW_LIBRARIES} + ${GLFW_LIBRARIES} ${PORTAUDIO_LIBRARIES} ${LIBSNDFILE_LIBRARY} ${LIBXML2_LIBRARIES} @@ -40,6 +42,7 @@ set(ALL_LIBS include_directories( ${LIBXML2_INCLUDE_DIR} + ${GLFW_INCLUDE_DIRS} src ) -- cgit 1.4.1