diff options
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e4ac25..553d757 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -21,18 +21,20 @@ elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC") | |||
21 | endif() | 21 | endif() |
22 | endif() | 22 | endif() |
23 | 23 | ||
24 | find_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 |
25 | find_package(OpenGL REQUIRED) | 27 | find_package(OpenGL REQUIRED) |
26 | find_package(GLEW REQUIRED) | 28 | find_package(GLEW REQUIRED) |
27 | find_package(GLFW REQUIRED) | 29 | pkg_check_modules(GLFW REQUIRED glfw3) |
28 | find_package(portaudio REQUIRED) | 30 | find_package(portaudio REQUIRED) |
29 | find_package(libsndfile REQUIRED) | 31 | find_package(libsndfile REQUIRED) |
30 | find_package(libxml2 REQUIRED) | 32 | find_package(libxml2 REQUIRED) |
31 | 33 | ||
32 | set(ALL_LIBS | 34 | set(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 | ||
41 | include_directories( | 43 | include_directories( |
42 | ${LIBXML2_INCLUDE_DIR} | 44 | ${LIBXML2_INCLUDE_DIR} |
45 | ${GLFW_INCLUDE_DIRS} | ||
43 | src | 46 | src |
44 | ) | 47 | ) |
45 | 48 | ||