-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (52 loc) · 2.15 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 3.24)
find_program(CCACHE ccache)
if (CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif ()
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(room-acoustics-dev VERSION 0.1.0)
enable_testing()
include(CTest)
find_package(xsimd REQUIRED CONFIG)
find_package(Catch2 REQUIRED)
include(Catch)
option(DAWN_FETCH_DEPENDENCIES "Use fetch_dawn_dependencies.py as an alternative to using depot_tools" ON)
option(DAWN_BUILD_SAMPLES "Enables building Dawn's samples" OFF)
option(DAWN_ENABLE_DESKTOP_GL "Enable OpenGL" OFF)
option(DAWN_ENABLE_OPENGLES "Enable OpenGLES" OFF)
option(DAWN_USE_GLFW "Enables building glfw samples" OFF)
option(TINT_BUILD_CMD_TOOLS "Build the Tint command line tools" OFF)
option(TINT_BUILD_DOCS "Build documentation" OFF)
option(TINT_BUILD_TESTS "Build tests" OFF)
if (NOT APPLE)
option(TINT_BUILD_MSL_WRITER "Build the MSL output writer" OFF)
endif()
if(WIN32)
option(TINT_BUILD_GLSL_WRITER "Build the GLSL output writer" OFF)
option(TINT_BUILD_GLSL_VALIDATOR "Build the GLSL output validator" OFF)
option(TINT_BUILD_SPV_READER "Build the SPIR-V input reader" OFF)
option(TINT_BUILD_SPV_WRITER "Build the SPIR-V output writer" OFF)
option(TINT_BUILD_WGSL_READER "Build the WGSL input reader" ON)
option(TINT_BUILD_WGSL_WRITER "Build the WGSL output writer" ON)
endif()
add_subdirectory(3rd_party/dawn EXCLUDE_FROM_ALL)
add_subdirectory(3rd_party/JUCE EXCLUDE_FROM_ALL)
include(FetchContent)
FetchContent_Declare(mdspan GIT_REPOSITORY "https://github.com/kokkos/mdspan" GIT_TAG "stable")
FetchContent_MakeAvailable(mdspan)
set(NEO_ENABLE_APPLE_ACCELERATE ON)
set(NEO_ENABLE_XSIMD ON)
add_subdirectory(3rd_party/neo/src EXCLUDE_FROM_ALL)
add_subdirectory(src)
find_package(Boost 1.85 REQUIRED COMPONENTS boost)
find_package(concurrentqueue REQUIRED)
find_package(fmt REQUIRED)
add_subdirectory(3rd_party/neo-juce/modules EXCLUDE_FROM_ALL)
add_subdirectory(tool/RaumAkustik)