forked from lucasfturos/MusicSpectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (28 loc) · 1.04 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.5) # CMake version check
# Set policy to prefer GLVND when finding OpenGL (suppresses warning)
cmake_policy(SET CMP0072 NEW)
# -------------------------------------------------------------------
set(PROJECT_NAME # Define all project info
MusicSpectrum
LANGUAGES CXX
VERSION 1.0.0
)
project(${PROJECT_NAME}) # Create project "MusicSpectrum"
set(CMAKE_CXX_STANDARD 20) # Enable c++20 standard
# List all the music files
set(RESOURCES_DIRECTORY
"${CMAKE_SOURCE_DIR}/assets"
)
# Copy the entire assets directory to the binary directory during build
file(COPY ${RESOURCES_DIRECTORY}
DESTINATION ${CMAKE_BINARY_DIR}
)
# Flags of compiling
add_compile_options(
-Wall -Wextra -Wpedantic -Werror -pedantic -Wno-unknown-pragmas -g -Ofast
)
# Add subdirectories for external and src
add_subdirectory(external)
add_subdirectory(src)
# -------------------------------------------------------------------