-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
33 lines (27 loc) · 985 Bytes
/
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
# Copyright (C) 2023 Codeplay Software Limited
# This work is licensed under the Apache License, Version 2.0.
# For a copy, see http://www.apache.org/licenses/LICENSE-2.0
cmake_minimum_required(VERSION 3.12)
project(SYCL-samples)
# Set build type to Release if unset
if(CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE was not set, setting to Release")
set(CMAKE_BUILD_TYPE "Release")
endif()
# Set global flags
set(CMAKE_CXX_STANDARD 17)
# Configure Magnum
include(cmake/ConfigureMagnum.cmake)
# Configure SYCL
include(cmake/ConfigureSYCL.cmake)
# Configure the demo projects
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} CACHE PATH "" FORCE)
add_subdirectory(src/matrix_multiply_omp_compare)
add_subdirectory(src/MPI_with_SYCL)
add_subdirectory(src/scan_parallel_inclusive)
if(ENABLE_GRAPHICS)
add_subdirectory(src/fluid)
add_subdirectory(src/game_of_life)
add_subdirectory(src/mandelbrot)
add_subdirectory(src/nbody)
endif()