-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (39 loc) · 1.39 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
cmake_minimum_required(VERSION 3.16)
project(muSYCL
VERSION 0.0.1
LANGUAGES CXX)
# To avoid refetching everything when no Internet
#set(FETCHCONTENT_FULLY_DISCONNECTED ON)
include(FindtriSYCL)
#find_package(TriSYCL MODULE REQUIRED)
# All targets inherit from include dir
include_directories(${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/ext)
find_library(LIBRARY_RTAUDIO NAMES rtaudio REQUIRED)
find_library(LIBRARY_RTMIDI NAMES rtmidi REQUIRED)
find_package(Doxygen
REQUIRED dot)
# To get some content directly at the source
include(FetchContent)
FetchContent_Declare(libremidi
GIT_REPOSITORY https://github.com/jcelerier/libremidi.git
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
GIT_TAG v4.5.0)
FetchContent_MakeAvailable(libremidi)
#set_project_properties(muSYCL PROPERTIES CXX_STANDARD 23)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 23)
# Apply Cppcheck to compilation (apt install cppcheck)
set(CMAKE_CXX_CPPCHECK "cppcheck")
# Apply include-what-you-use to compilation (apt install iwyu)
# Does not work with C++2b and mdspan
#set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "include-what-you-use")
add_subdirectory(src)
add_subdirectory(experiment)
# Create a "doxygen" target to produce documentation from directories
# include and src
doxygen_add_docs(doxygen
include
src)