-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
39 lines (30 loc) · 1.13 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.10)
project(openal_mwe)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Set the C++ standard to C++20
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_executable(openal_mwe src/main.cpp
src/interaction/camera/camera.cpp
src/interaction/mouse/mouse.cpp
src/graphics/textured_model_loading/textured_model_loading.cpp
src/graphics/shader_pipeline/shader_pipeline.cpp
src/graphics/shaders/CWL_uniform_binder_camera_pov.cpp
src/graphics/window/window.cpp
src/graphics/graphics.cpp
src/sound_system/sound_system.cpp
src/sound_system/load_sound_file.cpp
src/utils/game_loop/game_loop.cpp
src/utils/stopwatch/stopwatch.cpp
)
find_package(glfw3)
find_package(glad)
find_package(assimp)
find_package(stb)
find_package(glm)
# find_package(SndFile)
find_package(OpenAL)
add_subdirectory(external_libraries/libsndfile)
include_directories(external_libraries/libsndfile/include)
target_link_libraries(${PROJECT_NAME} glfw glad::glad assimp::assimp stb::stb glm::glm SndFile::sndfile OpenAL::OpenAL)