summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-12-17 15:46:53 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-12-17 15:46:53 -0500
commit1405c1b7c42d26cfeeee8e08a44bd0e2ef2906b7 (patch)
tree01eb5709f7512feb883b296733acb1a603bc34ae
parent11f4af82626b0e35c35606b327e4181c7c88f228 (diff)
downloadtherapy-1405c1b7c42d26cfeeee8e08a44bd0e2ef2906b7.tar.gz
therapy-1405c1b7c42d26cfeeee8e08a44bd0e2ef2906b7.tar.bz2
therapy-1405c1b7c42d26cfeeee8e08a44bd0e2ef2906b7.zip
Updated CMakeLists.txt so that it can find GLFW3 with pkg-config`
-rw-r--r--CMakeLists.txt11
1 files changed, 7 insertions, 4 deletions
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")
21 endif() 21 endif()
22endif() 22endif()
23 23
24find_package(PkgConfig)
25
24# Look up SDL2 and add the include directory to our include path 26# Look up SDL2 and add the include directory to our include path
25find_package(OpenGL REQUIRED) 27find_package(OpenGL REQUIRED)
26find_package(GLEW REQUIRED) 28find_package(GLEW REQUIRED)
27find_package(GLFW REQUIRED) 29pkg_check_modules(GLFW REQUIRED glfw3)
28find_package(portaudio REQUIRED) 30find_package(portaudio REQUIRED)
29find_package(libsndfile REQUIRED) 31find_package(libsndfile REQUIRED)
30find_package(libxml2 REQUIRED) 32find_package(libxml2 REQUIRED)
31 33
32set(ALL_LIBS 34set(ALL_LIBS
33 ${OPENGL_LIBRARY} 35 ${OPENGL_LIBRARIES}
34 ${GLEW_LIBRARY} 36 ${GLEW_LIBRARIES}
35 ${GLFW_LIBRARY} 37 ${GLFW_LIBRARIES}
36 ${PORTAUDIO_LIBRARIES} 38 ${PORTAUDIO_LIBRARIES}
37 ${LIBSNDFILE_LIBRARY} 39 ${LIBSNDFILE_LIBRARY}
38 ${LIBXML2_LIBRARIES} 40 ${LIBXML2_LIBRARIES}
@@ -40,6 +42,7 @@ set(ALL_LIBS
40 42
41include_directories( 43include_directories(
42 ${LIBXML2_INCLUDE_DIR} 44 ${LIBXML2_INCLUDE_DIR}
45 ${GLFW_INCLUDE_DIRS}
43 src 46 src
44) 47)
45 48