-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (23 loc) · 824 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (23 loc) · 824 Bytes
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
cmake_minimum_required(VERSION 3.10)
project(cmr_camera)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
file(GLOB_RECURSE SOURCES "src/*.cpp")
# Add the main executable
add_executable(${PROJECT_NAME} ${SOURCES})
add_custom_target(copy_resources ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${PROJECT_SOURCE_DIR}/assets
${PROJECT_BINARY_DIR}/assets
COMMENT "Copying resources into binary directory")
add_dependencies(${PROJECT_NAME} copy_resources)
find_package(glfw3)
find_package(glad)
find_package(spdlog)
find_package(glm)
find_package(nlohmann_json)
find_package(assimp)
find_package(stb)
find_package(OpenAL)
find_package(SndFile)
target_link_libraries(${PROJECT_NAME} glfw glad::glad spdlog::spdlog glm::glm nlohmann_json::nlohmann_json assimp::assimp stb::stb OpenAL::OpenAL SndFile::sndfile)